rake-live: Auswertung glatt mit station allein (16 Ziehungen)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-15 11:40:27 +01:00
co-authored by Claude Opus 5.5
parent e6c2ff4f5d
commit d4657f91c1
+10 -1
View File
@@ -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: