The example circuits' boards: a KiCad layout for each, written from a short
description.
python -m kicad2ems.pcbqs.circuit.boards # write every example's .kicad_pcb
# beside its model, and check each
python -m kicad2ems.pcbqs.circuit.boards --picture boards.png
A layout here is what a power board is: an island of copper for each net on the
top layer, a ground strip stitched to a ground plane on the bottom, and each
part across the gap between the islands of its two nets. So a description is the
islands (rectangles, mm) and the package of each part; where a part goes follows
from the islands its nets have (`place`), a transformer or anything else unusual
is put down by hand (`part`).
b = Board('06_boost', 44, 24)
b.row(['in', 'sw', 'out'], [15, 9, 16]) # three islands in a row over the
# ground strip
b.place(model, packages={'V1': 'J_PADS', 'L1': 'L_7x7', ...},
names={'V1': 'J1', 'R1': 'J2'})
b.check(); b.write(folder)
check() is the generator's own: every pad on copper of its net, every net's
copper in one piece (through its vias and the plane), no two nets closer than
the clearance. tests/test_circuit_boards.py checks the written files again, as
kicad2ems reads them.