Zeitprobe fortsetzbar (Lauf wurde nach 42 Anfragen von aussen beendet)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -67,8 +67,17 @@ def main():
|
||||
p = subprocess.Popen([exe, "--blueprint", bp, "--buckets", bk, "--sizing", sz, "--bind", "127.0.0.1:0"] + rest,
|
||||
stdin=subprocess.PIPE, stdout=subprocess.PIPE, env=env, text=True, encoding="utf-8", bufsize=1)
|
||||
zeiten = {}
|
||||
# Fortsetzen: Anfragen, die schon mit beiden Armen in <aus> stehen, werden uebersprungen (nur anhaengen)
|
||||
fertig = {}
|
||||
if os.path.exists(aus):
|
||||
for z in open(aus, encoding="utf-8"):
|
||||
if z.strip():
|
||||
d = json.loads(z)
|
||||
fertig.setdefault(d["nr"], set()).add(d["arm"])
|
||||
with open(aus, "a", encoding="utf-8") as f:
|
||||
for nr, a in enumerate(fragen):
|
||||
if fertig.get(nr) == {"chips", "wert"}:
|
||||
continue
|
||||
for arm, wert in (("chips", False), ("wert", True)):
|
||||
q = sh_turnier.anfrage(a, nr + 1, wert=wert)
|
||||
t0 = time.perf_counter()
|
||||
|
||||
Reference in New Issue
Block a user