resistor module#
Generic parametric 0402 resistor component.
This local model uses JITX’s standard resistor symbol and 0402 landpattern. It does not select or claim a manufacturer part number.
- class Resistor(*, resistance: float | PlainQuantity)[source]#
Bases:
ComponentA generic 0402 resistor parameterized by resistance.
A numeric resistance is interpreted as ohms. A JITX quantity with compatible resistance units, such as
2 * kohm, is kept in its supplied unit. Zero ohms is valid for components used as electrical jumpers.- Parameters:
resistance (PlainQuantity)
- p1 = Port()#
- p2 = Port()#
- landpattern = SMT('0402')#
- symbol = ResistorSymbol()#
- reference_designator_prefix: str | None = 'R'#
Reference designator prefix for this component. This will be used to generate a unique reference designator for each component of the same type.
Note
This field is a required data point for matching components between builds. If this value changes (including changing from unset to set), it will be treated as a new component, even if nothing else changes.
- resistance: PlainQuantity#