Startprobe auch ohne AB_SPOT (Arm A allein, z. B. basis-0312)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-03 19:11:50 +01:00
co-authored by Claude Opus 5.5
parent 80db80ec0d
commit d3f3457eb2
@@ -73,9 +73,12 @@ def main():
if k.startswith(("AB_SPOT", "MOTOR_", "NOTBREMSE", "GEDAECHTNIS2", "SCHWACHJAM", "SPAET_FOLD")):
del os.environ[k]
decide.SCHALTER = decide.lies_schalter(o.schalter); decide.laeufer_umgebung(decide.SCHALTER, os.environ)
k = abspot.konfig()
k = abspot.konfig() # None: kein AB_SPOT in der Datei -> Probe von Arm A allein (Laeufer-Umgebung, ohne B-Zeile)
env = {kk: v for kk, v in os.environ.items() if not kk.startswith("AB_SPOT")}
env.update(k["b"]); env["MOTOR_SHARINGAN_WARTEN"] = "900"; env["RAYON_NUM_THREADS"] = str(k["faeden"])
if k:
env.update(k["b"]); env["MOTOR_SHARINGAN_WARTEN"] = "900"; env["RAYON_NUM_THREADS"] = str(k["faeden"])
else:
env["RAYON_NUM_THREADS"] = env.get("MOTOR_SPIEL_FAEDEN", "12")
d = os.path.join(decide.SCHALTER.get("MOTOR_SCHATTEN"), "daten", "grundstrategie", "motor")
befehl = [o.exe, "dienst", "sechs100", d, "2000-600-400", "200", os.path.join(d, "sechs100-v2.bin"), "genau", "hu=%s,%s" % (os.path.join(d, "hu100-v1.bin"), os.path.join(d, "hu200-v2.bin"))]
items = [it for it in J.lade_mit_antwort(os.path.join(H.L, "archiv", "lauf", "schatten.jsonl"), 10 ** 7) if str(it.get("zeit") or "").startswith(o.tag)][-o.n:]
@@ -84,7 +87,7 @@ def main():
items = [dict(it, q=dict(it["q"], seed=it["seed"])) if it.get("seed") is not None else it for it in items]
if o.dazu:
items = [{"hand": json.loads(z).get("hand"), "q": json.loads(z)["q"]} for z in open(o.dazu, encoding="utf-8")] + items
print("Startprobe: %d Anfragen vom %s | B-Zeile %s | Exe %s" % (len(items), o.tag, k["b"], os.path.basename(o.exe)), flush=True)
print("Startprobe: %d Anfragen vom %s | B-Zeile %s | Exe %s" % (len(items), o.tag, k["b"] if k else "(Arm A allein)", os.path.basename(o.exe)), flush=True)
t0 = time.time()
antw, zeiten, tode = H.laufe(befehl, env, items, threading.Event(), zusage=lambda: None)
q_zahl = collections.Counter(); ruck = collections.Counter(); ung = collections.Counter(); zeit = collections.defaultdict(list)