stackup module#

The stackup: the layer model, and the gbrjob’s MaterialStackup.

Row types come from jitx.stackup.Material.representing where it is set, so a layer that declares itself soldermask or silkscreen becomes a SolderMask or Legend row rather than being mislabeled Dielectric, which is what an “everything that is not a conductor is a dielectric” walk produces. The same field is what lets BoardThickness exclude the soldermask, as the convention expects.

class StackupModel(layers, rows, thickness)[source]#

Bases: object

What the stackup walk produced.

Parameters:
layers: LayerModel#
rows: list[StackupRow]#
thickness: float | None#
build(design)[source]#

Walk the stackup materials top to bottom.

Raises:

ValueError – the stackup declares no conductors, so there is no board to export.

Return type:

StackupModel

Parameters:

design (RuntimeDesign)