main
John Lauer
Adopt DRC-clean v85 and passing exact-board current screen; retain open cooling validation and reviewed build clips
a897f04
import json
from pathlib import Path
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
P=Path(__file__).resolve().parents[1]
j=json.loads((P/'checkpoints/unclipped-hotspots-v1/fields-v85-full-0p1/fields.json').read_text())
nets=sorted(j['nets'],key=lambda x:x['net']);names=[x['net'] for x in nets]
surface=[x['peakJ'] for x in nets];barrel=[max((abs(p['amps'])/p['barrelAreaMm2'] for p in n.get('platedConnections',[])),default=0) for n in nets]
plt.style.use('dark_background');fig,ax=plt.subplots(figsize=(12,6.75));x=list(range(len(nets)));w=.35
ax.bar([i-w/2 for i in x],surface,w,label='Surface: unclipped cell maximum',color='#4de4cb');ax.bar([i+w/2 for i in x],barrel,w,label='Plated barrel: mean density',color='#75aaff');ax.axhline(60,color='#ff9479',ls='--',label='Unchanged 60 A/mm² screen');ax.set_xticks(x,names);ax.set_ylim(0,70);ax.set_ylabel('Current density (A/mm²)');ax.set_title('Saved prototype v85: all six current screens pass');ax.legend(loc='upper left',fontsize=8);ax.grid(axis='y',alpha=.15);fig.text(.05,.03,'0.1 mm grid · explicit physical-pad currents · native DRC: 0 errors / warnings / opens\nEngineering screen only. Complete cooling assembly and hardware qualification remain open.',fontsize=10);fig.subplots_adjust(bottom=.2,top=.88,left=.08,right=.98);fig.savefig(P/'aiflow/run/timeline/current-v85.png',dpi=160)