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]
d=json.loads((P/'mechanical/package-cooling-budget.json').read_text());rows=d['stockSinkScenarios']
plt.style.use('dark_background');fig,ax=plt.subplots(figsize=(12,6.75));vals=[x['caseC'] for x in rows]
ax.barh(['K1300 typical\narea scaling','173-7 scaled\ntest-area figure','AlN + two grease films\nillustrative stack'],vals,color=['#ed987b','#ed987b','#56d3bd']);ax.axvline(55,color='#ffc27e',ls='--',label='55 °C case trip, unchanged');ax.set_xlim(40,63);ax.set_xlabel('Calculated case temperature (°C)');ax.set_title('Cooling interface sensitivity · 5.5 W / 40 °C ambient')
for i,v in enumerate(vals):ax.text(v+.2,i,f'{v:.2f} °C',va='center')
ax.legend(loc='upper right');ax.grid(axis='x',alpha=.15);fig.subplots_adjust(left=.23,right=.97,bottom=.24,top=.88);fig.text(.04,.04,'Wakefield 680-125220: catalog 1.5 K/W at 400 LFM; installed airflow NOT established.\nNominal contact area and assumed spreading. Mounting, insulation and complete thermal gate remain open.',fontsize=10);fig.savefig(P/'aiflow/run/timeline/cooling-sensitivity-v85.png',dpi=160)