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,concurrent.futures
R=Path(__file__).resolve().parents[1]
def run(arg):
 slug,view=arg;p=R/'components'/slug;args=['step2glb','thumbnail',str(p/(slug+'.step')),'--out',str(p/'review'/(view+'.png')),'--width','1000','--height','750','--pose','top']
 if view=='bottom':args+=['--up-axis','zDown']
 r=subprocess.run(args,capture_output=True,text=True);(p/'review'/(view+'.log')).write_text(r.stdout+r.stderr);assert r.returncode==0,r.stderr;return slug+' '+view
with concurrent.futures.ThreadPoolExecutor(max_workers=2) as ex:
 for result in ex.map(run,[(s,v)for s in ['bm03b-ghs-tbt','ghr-03v-s','sshl-002t-p0-2']for v in ['top','bottom']]):print(result,flush=True)