From d4657f91c13b49dbda44ae066df874d08f872f14 Mon Sep 17 00:00:00 2001 From: Marc Mintel Date: Sun, 15 Nov 2026 11:40:27 +0100 Subject: [PATCH] rake-live: Auswertung glatt mit station allein (16 Ziehungen) Co-Authored-By: Claude Opus 5.5 --- messung_rake/auswerten.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/messung_rake/auswerten.py b/messung_rake/auswerten.py index 5254390c..6748bda3 100644 --- a/messung_rake/auswerten.py +++ b/messung_rake/auswerten.py @@ -48,6 +48,15 @@ def main(): leiter = subprocess.run([sys.executable, AB, basis, an], capture_output=True, text=True, encoding="utf-8", env=dict(os.environ, PYTHONIOENCODING="utf-8")) print("```\n" + leiter.stdout.strip() + ("\n" + leiter.stderr.strip() if leiter.stderr.strip() else "") + "\n```\n") verlierer = "VERLIERER" in leiter.stdout + st_basis, st_an = os.path.join(HIER, "arme", "rake-station-basis"), os.path.join(HIER, "arme", "rake-station-an") + station_fertig = True + if arm == "rake-glatt-an": + print("## station allein (16 Ziehungen), an - basis\n") + st = subprocess.run([sys.executable, AB, st_basis, st_an], capture_output=True, text=True, encoding="utf-8", env=dict(os.environ, PYTHONIOENCODING="utf-8")) + print("```\n" + st.stdout.strip() + ("\n" + st.stderr.strip() if st.stderr.strip() else "") + "\n```\n") + verlierer = verlierer or "VERLIERER" in st.stdout + n = lambda d: len(os.listdir(d)) if os.path.isdir(d) else 0 + station_fertig = n(st_an) >= 16 and n(st_an) == n(st_basis) and "GESAMT" in st.stdout aus, ein = lbr(os.path.join(HIER, "lbr", "rake-lbr-aus.txt")), lbr(os.path.join(HIER, "lbr", lbr_an)) gemeinsam = sorted(set(aus) & set(ein)) @@ -64,7 +73,7 @@ def main(): print(f"- Leiter: {'VERLIERER (mind. eine Zeile oder gesamt sicher unter 0)' if verlierer else 'kein Verlierer'}") print(f"- LBR: {'SCHLECHTER (KI ganz ueber 0)' if lbr_schlechter else 'nicht schlechter'}") zellen = lambda d: sorted(os.listdir(d)) if os.path.isdir(d) else [] - vollstaendig = zellen(an) and zellen(an) == zellen(basis) and nd >= 2000 and "GESAMT" in leiter.stdout + vollstaendig = station_fertig and zellen(an) and zellen(an) == zellen(basis) and nd >= 2000 and "GESAMT" in leiter.stdout if not vollstaendig: print(f"- **UNVOLLSTAENDIG** (an-Zellen {len(zellen(an))}/{len(zellen(basis))}, LBR gepaart {nd}/2000): kein Urteil.") elif verlierer or lbr_schlechter: