Farm: Tor-5-Pruefung findet die Schalter in der MOTOR_ZEILE (Semikolon-getrennt)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Marc Mintel
2026-12-06 06:54:32 +01:00
co-authored by Claude Opus 5.5
parent e05b459865
commit 133d10b8be
+1 -1
View File
@@ -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"