Skip to content
RPRichard PruittTech & Cyber
Navigation
repo://poppyup/wiring/src/w301.py

wiring/src/w301.py

1.2 KB · 15 lines · python · Download from the repository page

wiring/src/w301.py
from sheet import Sheetimport modeldef draw():  s = Sheet("301", model.SHEETS[-1][1])  x0,y0,x1,y1 = s.frame  s.heading(x0+20, y0+34, "CONNECTION SCHEDULE — off-board connections (cables, flexes, mated modules, bonds)", 14)  s.label(x0+20, y0+50, "Same data as PU_Connection-Schedule_Rev-A.csv / .md; on-board power links P-01…P-25 are tabulated in the .md and drawn on PU-W-102. Lengths are estimates from the docs/08 layout unless stated; none are measured.", 8.5, fill="#333")  rows = []  for c in model.CONNECTIONS:    rows.append([c["id"], f"{c['frm'][0]} {c['frm'][1]}", f"{c['to'][0]} {c['to'][1]}", c["medium"], c["signal"], c["cls"], c["length"], c["status"], c["source"], " ".join(model.sheet_no(x).replace("PU-W-","") for x in c["sheets"])])  yb = s.table(x0+20, y0+58, [42, 90, 90, 250, 520, 46, 82, 60, 130, 70], rows, ["ID","From","To","Medium","Signal / service","Class","Length","Status","Source","Sheets"], 7.4, pad=3)  s.label(x0+20, yb+14, "Status: Verified = stated in the design package (docs/00–13); Assumed = drafting proposal to confirm at schematic capture; TBD = open. Class per legend. Sheet numbers are PU-W-xxx.", 8, fill="#333")  s.titleblock()  return s.write()