diff --git a/messung/farm/bitgleich/kreuz.sh b/messung/farm/bitgleich/kreuz.sh new file mode 100755 index 00000000..0e04082c --- /dev/null +++ b/messung/farm/bitgleich/kreuz.sh @@ -0,0 +1,18 @@ +#!/bin/zsh +# mehrweg 06.12.: Kreuz-Abspiel als Code-Gleichheitsbeleg fuer Umbau-Merges: der neue Merge (Rauchprobe , Exe und Pruefstand-Zeile +# seines an_selbst-Arms) spielt die Aufzeichnung von an aus der Rauchprobe ab. Erwartung: bitgleich, auch Turn/River. +# kreuz.sh z. B. kreuz.sh m5v m5 (beide Rauchproben muessen fertig sein) +N=$1; A=$2; H=${0:a:h}; S=${TMPDIR:-/tmp}; PY='C:\Users\marcm\AppData\Local\Programs\Python313\python.exe' +W="C:\\pf-arbeit\\bitgleich\\rauch-$N"; DW="D:\\Projects\\pokerfreak-daten\\pruefstand\\bitgleich" +K=$(python3 -c "import json;print(json.load(open('/Volumes/Alpha SSD/pokerfreak-daten/pruefstand/bitgleich/rauch-$N/auftrag.json'))['arme'][0][2][:8])") +ID="bitgleich-kreuz-$N-von-$A"; AUS="$DW\\rauch-$N\\kreuz_$A\\teil0.jsonl"; VON="$DW\\rauch-$A\\an\\teil0.jsonl" +python3 - "$S/$ID.json" "$ID" "$K" "$W" "$AUS" "$VON" "$PY" <<'PY' +import json, sys +f, id_, k, W, aus, von, py = sys.argv[1:8] +exe = rf"C:\pf-arbeit\pokerbench-allinprobe-{k}.exe" +j = {"id": id_, "sitzung": "bitgleich", "prio": -20, "faeden": 4, "ram_gb": 12, "kurz": True, "dauer_min": 30, "ordner": W, + "befehl": rf'powershell -NoProfile -Command "New-Item -ItemType Directory -Force {aus.rsplit(chr(92), 1)[0]} | Out-Null; & {py} -X utf8 {W}\bg_lauf.py {exe} {W}\zeile-an_selbst.txt X 0 1 {aus}"', + "env": {"BG_FRIST": "1", "BG_ABSPIEL_VON": von}} +json.dump(j, open(f, "w")) +PY +scp -q "$S/$ID.json" "Marc@192.168.1.201:D:/Projects/pf-batterie/messung/farm/schlange/auftraege/$ID.json" && echo "eingereiht $ID (Exe $K)"