main
John Lauer
Add JST GH libraries, native schematic parity and revised sensor harness study with reviewed clips
1ac01c3
from pathlib import Path
import subprocess,json
R=Path(__file__).resolve().parents[1]
for slug in ['bm03b-ghs-tbt','ghr-03v-s','sshl-002t-p0-2']:
P=R/'components'/slug
tasks=[('convert',['step2glb','convert',str(P/(slug+'.step')),'--out',str(P/(slug+'.glb'))]),('thumbnail',['step2glb','thumbnail',str(P/(slug+'.step')),'--out',str(P/'hero.png'),'--width','1600','--height','1000','--pose','iso2']),('native-symbol',['adom-lbr','check',str(P/(slug+'.kicad_sym'))])]
for label,cmd in tasks:
if label=='convert' and (P/(slug+'.glb')).is_file():
print(slug,'reuse existing conversion',flush=True);continue
p=subprocess.run(cmd,capture_output=True,text=True);(P/'review'/(label+'.log')).write_text(p.stdout+p.stderr);assert p.returncode==0,(slug,label,p.stderr[-400:]);print(slug,label,'passed',flush=True)