Wildmeshing Toolkit
Loading...
Searching...
No Matches
Variables
failure_report Namespace Reference

Variables

 ROOT = os.environ.get("TRIWILD_ROOT", "/u/3/daniele/triwild-sweep")
 
 R = os.environ.get("TRIWILD_OUT", os.path.join(ROOT, "runs/full"))
 
 FD = os.path.join(R, "failure")
 
 DATA = os.path.join(ROOT, "data")
 
list PHASES
 
list rows = []
 
 d = os.path.join(FD, m)
 
str log = ""
 
 p = os.path.join(d, f)
 
 errors
 
 size = os.path.getsize(os.path.join(DATA, m + ".obj"))
 
str phase = "before reading"
 
 its = len(re.findall(r"========it (\d+)========", log))
 
 en = re.findall(r"max energy ([0-9.e+]+) \| stop", log)
 
 first = float(en[0]) if en else None
 
 last = float(en[-1]) if en else None
 
 nt = re.findall(r"#V = \d+, #T = (\d+)", log)
 
 ne = re.search(r"Read edge mesh \S+: #V = (\d+), #E = (\d+)", log)
 
 simp = re.search(r"#E (\d+) -> (\d+)", log)
 
 arr = re.search(r"2D arrangement: #V = (\d+), #F = (\d+)", log)
 
list order = [n for _, n in PHASES]
 
 counts = collections.Counter(r["phase"] for r in rows)
 
list buckets = [(0, 0), (1, 1), (2, 5), (6, 20), (21, 200)]
 
 c = sum(1 for i in its if lo <= i <= hi)
 
 sz = sorted(r["size"] for r in rows)
 
list run = [r for r in rows if r["its"] > 0 and r["last"] is not None]
 
 lasts = sorted(r["last"] for r in run)
 
 conv = sum(1 for r in run if r["first"] and r["last"] and r["last"] < r["first"])
 
str hdr = " %-9s %6s %6s %9s %12s %12s %s"
 
 key
 
str hdr2 = " %-9s %6s %6s %10s %10s %9s %s"
 

Detailed Description

Where did each timed-out model die, how far did it get, and at what energy.

Variable Documentation

◆ PHASES

list failure_report.PHASES
Initial value:
1= [
2 ("Read edge mesh", "read input"),
3 ("input simplification:", "simplified"),
4 ("skip simplification", "simplified"),
5 ("2D arrangement:", "arrangement done"),
6 ("Envelope sanity check", "init_mesh done"),
7 ("========it pre========", "pre-collapse"),
8 ("========it 0========", "optimization"),
9 ("========it post========", "post-collapse"),
10 ("flood fill parts", "winding number"),
11 ("Hausdorff distance", "hausdorff check"),
12 ("final max energy", "writing output"),
13]