master
John Lauer Publish thermal bottleneck planner, accepted candidate, analysis and native recording scripts 0049da5 29d ago
import sys,xml.etree.ElementTree as ET,json
from pathlib import Path
P=Path(__file__).resolve().parent;B=P.parent/'thermal-expansion/recording/bq25792-expanded-thermal.brd'
r=ET.parse(B);b=r.find('drawing/board')
for s in b.findall('signals/signal'):
 wires=[w.attrib for w in s.findall('wire') if w.get('layer')=='16']
 if wires:print(s.get('name'),json.dumps(wires))