RoboParty Release
Unify robohome source, assets and scenes delivery
3f15e9f
Raw History Blame Contribute Delete
1.49 kB
import curation_paths as paths
import json,os,glob,collections as C
E=paths.W+"/e2e"
for s in ("1271337134","749947647","1344862746"):
d=f"{E}/v9_{s}"
if not os.path.exists(d+"/run_01/prepare.log"): print(s,"not started"); continue
ev=[]
for l in open(d+"/run_01/prepare.log",errors="replace"):
if l.startswith("{"):
try: ev.append(json.loads(l))
except Exception: pass
r=max([e.get("round",0) for e in ev] or [0]); sel=[e for e in ev if e["stage"]=="selection_finished"]
cs=glob.glob(E+f"/tree9/engine/runs/v9_{s}_*"); fails=C.Counter()
if cs:
for rd in glob.glob(cs[0]+"/dynamic_selection/round_*"):
a=rd+"/activation.json"
if os.path.exists(a):
try:
for it in json.load(open(a)).get("assets",[]):
if it.get("activation_status")=="failed": fails[it.get("error","?")[:40]]+=1
except Exception: pass
un=[e for e in ev if e["stage"]=="cache_qualification_finished"]
fin=None
try: x=json.load(open(d+"/results.json"))[0]; fin=(x["status"],x.get("geometry_passed"),round(x["elapsed_s"]))
except Exception: pass
print(s,"ended" if os.path.exists(d+"/ended.json") else "running","rounds",r,"prep",(round(sel[0]["elapsed_s"]),sel[0].get("status")) if sel else None,"fails",dict(fails) or 0,"unresolved",[u.split("__")[1] if "__" in u else u for u in un[-1].get("unresolved",[])] if un else None,"final",fin)