From f9d7c9786b2144dfc3a8fe0cbaa31d42b3ea6847 Mon Sep 17 00:00:00 2001 From: Marc Mintel Date: Thu, 3 Dec 2026 15:07:41 +0100 Subject: [PATCH] Startprobe SHARINGAN rein: --dazu fuer feste Stellen (Limp-Nachweis), --nachflop Co-Authored-By: Claude Opus 5.5 --- messung/farm/nacht-0112/werkzeuge/farm_rein_startprobe.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/messung/farm/nacht-0112/werkzeuge/farm_rein_startprobe.py b/messung/farm/nacht-0112/werkzeuge/farm_rein_startprobe.py index 2e155f11..f777b01a 100644 --- a/messung/farm/nacht-0112/werkzeuge/farm_rein_startprobe.py +++ b/messung/farm/nacht-0112/werkzeuge/farm_rein_startprobe.py @@ -32,7 +32,7 @@ def position(q): def main(): ap = argparse.ArgumentParser(); ap.add_argument("exe"); ap.add_argument("schalter"); ap.add_argument("aus") - ap.add_argument("--tag", default="2026-12-03"); ap.add_argument("--n", type=int, default=3000) + ap.add_argument("--tag", default="2026-12-03"); ap.add_argument("--n", type=int, default=3000); ap.add_argument("--nachflop", action="store_true", help="nur Flop/Turn/River"); ap.add_argument("--dazu", help="jsonl mit {q, hand}: diese Anfragen zusaetzlich (z. B. die Limp-Stellen)") o = ap.parse_args() if H.spielt(): sys.exit("ABBRUCH: Laeufer spielt") @@ -50,7 +50,11 @@ def main(): 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:] + if o.nachflop: + 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) and it["q"].get("street") != "PREFLOP"][-o.n:] 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) t0 = time.time() antw, zeiten, tode = H.laufe(befehl, env, items, threading.Event(), zusage=lambda: None)