diff --git a/messung/farm/kandidat/tor5-kandidat.ps1 b/messung/farm/kandidat/tor5-kandidat.ps1 index 596b6574..4a254044 100644 --- a/messung/farm/kandidat/tor5-kandidat.ps1 +++ b/messung/farm/kandidat/tor5-kandidat.ps1 @@ -11,7 +11,7 @@ $exeDatei = $k.exe; if ((Get-FileHash $exeDatei).Hash -ne $k.exe_sha256) { 'Exe- if ((Get-FileHash $k.schalter).Hash -ne $k.schalter_sha256) { 'Schalter-SHA passt nicht zu KANDIDAT.json' | Set-Content "$zielOrdner\abbruch.txt"; exit 3 } $schalterDatei = $k.schalter $t = Get-Content $schalterDatei -Raw -if ($t -notmatch '(?m)^MOTOR_RANGE_KORREKTUR=aus\s*$' -or $t -notmatch '(?m)^MOTOR_TURN_POSTERIOR=basis\s*$') { 'Schalterdatei liest Range-Dateien (RANGE_KORREKTUR/TURN_POSTERIOR nicht aus/basis)' | Set-Content "$zielOrdner\abbruch.txt"; exit 4 } +if ($t -notmatch '(?m)(^|[;=])MOTOR_RANGE_KORREKTUR=aus(;|\s*$)' -or $t -notmatch '(?m)(^|[;=])MOTOR_TURN_POSTERIOR=basis(;|\s*$)') { 'Schalterdatei liest Range-Dateien (RANGE_KORREKTUR/TURN_POSTERIOR nicht aus/basis)' | Set-Content "$zielOrdner\abbruch.txt"; exit 4 } Set-Location $werkzeuge & $py -X utf8 farm_hand_probe.py $exeDatei $schalterDatei 'D:\Projects\pokerfreak-daten\gedaechtnis2-live\strom.jsonl' "$zielOrdner\hand.json" *> "$zielOrdner\hand.txt"; "hand rc $LASTEXITCODE" | Add-Content "$zielOrdner\rc.txt" & $py -X utf8 farm_rein_startprobe.py $exeDatei $schalterDatei "$zielOrdner\probe" --n 1000 --kalt --frist-rest 4.0 *> "$zielOrdner\probe.txt"; "probe rc $LASTEXITCODE" | Add-Content "$zielOrdner\rc.txt"