← Commit history
test_mark_gate: work on a copy of the good etch (the gate writes reports beside the STEP)
1 file changed
+4−2
tools/laser-etch/test_mark_gate.py+4−2@@ -28,8 +28,10 @@ def main(): a = ap.parse_args() os.makedirs(a.out_dir, exist_ok=True) d = lambda n: os.path.join(a.out_dir, f"{a.mpn}-{n}.step")- good = a.good or d("good")- if not a.good:+ good = d("good")+ if a.good: # work on a copy: the gate writes reports beside the STEP it checks+ shutil.copyfile(a.good, good)+ else: ME.etch(a.step, a.mpn, good, a.footprint) plan = ME.MP.plan(a.step, a.footprint, a.mpn) cases = {}