diff --git a/messung/farm/allinprobe/allinprobe-pfad.ps1 b/messung/farm/allinprobe/allinprobe-pfad.ps1 index 0d173e0a..74aff5f6 100644 --- a/messung/farm/allinprobe/allinprobe-pfad.ps1 +++ b/messung/farm/allinprobe/allinprobe-pfad.ps1 @@ -1,7 +1,7 @@ # 05.12. 20:3x Owner/main: Farm nur noch fuer A0 + All-in-Probe. Alles andere halten (wartend .halten, laufend PAUSE manuell), nichts loeschen. $Q = 'D:\Projects\pf-batterie\messung\farm\schlange' $grund = 'manuell farm 05.12. ' + (Get-Date -Format 'HH:mm') + ': Owner - Farm nur fuer A0 + All-in-Probe; fortsetzen nach Freigabe main' -function Erlaubt([string]$id) { $id -match '^(allinprobe-.*|bitgleich-.*|innovation-vorflop-werte|innovation-vorflopselbst-fehler|mehrweg-bibtx-.*)$' } +function Erlaubt([string]$id) { $id -match '^(allinprobe-.*|bitgleich-.*|innovation-vorflop-werte|innovation-vorflopselbst-fehler|mehrweg-bibtx-.*|simpool-B-.*)$' } foreach ($f in Get-ChildItem "$Q\laufend" -Filter *.json) { $id = $f.BaseName if (Erlaubt $id) { continue } diff --git a/messung/farm/bitgleich/reihenfolge.ps1 b/messung/farm/bitgleich/reihenfolge.ps1 index 169a041a..9863895b 100644 --- a/messung/farm/bitgleich/reihenfolge.ps1 +++ b/messung/farm/bitgleich/reihenfolge.ps1 @@ -30,23 +30,24 @@ foreach ($f in Get-ChildItem "$Q\auftraege" -Filter '*.json') { # Klasse 5 (main 05.12. 22:xx): fair statt geparkt - je Sitzung hoechstens EIN Auftrag gleichzeitig, reihum (aeltester zuerst); Klasse 1-4 rueckt weiter vor. function Auftrag([string]$id) { if ($id -match '^bitgleich-(.+?)-(bau-[0-9a-f]{8}|[A-Za-z0-9_]+-\d+|einzel|zeile\d+)$') { return $Matches[1] } + if ($id -match '^(simpool-B)-') { return $Matches[1] } # Rueckvorhersage Stufe 3, 7 Fassungen = ein Auftrag return $id } function Sitzung([string]$auftrag) { if ($auftrag -match '^motor-konstanten') { 'nachtlerner' } elseif ($auftrag -match '^range-') { 'flopsuche' } elseif ($auftrag -match '^(heuristik-schalter|rueckpruefung|allin-rueck)') { 'temperatur' } elseif ($auftrag -match '^(turn-range|gedaechtnis)') { 'gedaechtnis2' } - elseif ($auftrag -match '^(innovation-|br-nach|vorflop)') { 'innovation' } else { $auftrag } + elseif ($auftrag -match '^(innovation-|br-nach|vorflop)') { 'innovation' } elseif ($auftrag -match '^simpool') { 'sim-gekauft' } else { $auftrag } } -$ist5 = { param($n) (($n -like 'bitgleich-*') -or ($n -in 'innovation-vorflop-werte', 'innovation-vorflopselbst-fehler')) -and ($null -eq (Rang $n)) } +$ist5 = { param($n) (($n -like 'bitgleich-*') -or ($n -like 'simpool-B-*') -or ($n -in 'innovation-vorflop-werte', 'innovation-vorflopselbst-fehler')) -and ($null -eq (Rang $n)) } $aktiv = @{} # Sitzung -> aktiver Auftrag (hat laufende oder freie Teile) foreach ($f in @(Get-ChildItem "$Q\laufend" -Filter '*.json') + @(Get-ChildItem "$Q\auftraege" -Filter '*.json')) { $id = $f.BaseName; if (-not (& $ist5 $id)) { continue } $a = Auftrag $id; $s = Sitzung $a; if (-not $aktiv.ContainsKey($s)) { $aktiv[$s] = $a } } # frei gewordene Sitzungen bekommen ihren aeltesten geparkten Auftrag -$geparkt = @(Get-ChildItem "$Q\auftraege" -File | ? { $_.Name -match '\.json\.klasse5$' -or ($_.Name -match '^innovation-vorflopselbst-fehler\.json\.halten$') } | Sort-Object LastWriteTime) +$geparkt = @(Get-ChildItem "$Q\auftraege" -File | ? { $_.Name -match '\.json\.klasse5$' -or ($_.Name -match '^simpool-B-.*\.json\.luecke$') -or ($_.Name -match '^innovation-vorflopselbst-fehler\.json\.halten$') } | Sort-Object LastWriteTime) foreach ($f in $geparkt) { - $id = $f.Name -replace '\.json\.(klasse5|halten)$', ''; $a = Auftrag $id; $s = Sitzung $a + $id = $f.Name -replace '\.json\.(klasse5|halten|luecke)$', ''; $a = Auftrag $id; $s = Sitzung $a if (-not $aktiv.ContainsKey($s)) { $aktiv[$s] = $a; "KLASSE5 aktiv: $s -> $a" } if ($aktiv[$s] -eq $a) { Rename-Item $f.FullName "$id.json"; "KLASSE5 frei $id" } }