axial module#

class THWeldBeadLead(length, width, weld_offset=Toleranced(0, 0, 0))[source]#

Bases: THLead

Through-hole lead with optional weld bead

This class is used to specify a through-hole lead with an optional weld bead. The weld bead is specified as an offset from the lead’s center.

Parameters:
weld_offset: Toleranced = Toleranced(0, 0, 0)#

Weld bead offset

Additional margin to provide around a lead to account for the weld bead.

class AxialMounting(*values)[source]#

Bases: Enum

Axial component mounting style

This enum is used to specify the mounting style of an axial component.

Horizontal = 'Horizontal'#

Horizontal Mounting Style

This is the typical mounting style where the lead axis is parallel to the board surface.

Vertical = 'Vertical'#

Vertical Mounting Style

This is the mounting style where the lead axis is perpendicular to the board surface, and the lead pointing away from the board surface is bent 180 degrees to return to the board surface.

compute_default_bend_radius(lead_diameter)[source]#

Compute default target bend radius.

See also

IPC-A-610 Section 7.1.2, Table 7-1 Lead Bend Radius

Return type:

float

Parameters:

lead_diameter (Toleranced)

class LeadBend(radius, start=1.0)[source]#
Parameters:
radius: float#

Radius of the bend in the lead

start: float = 1.0#

Lead bend start from the edge of the package body. Default is 1.0mm.

class AxialTwoPinBase(*, lead, package_body, mounting=AxialMounting.Horizontal, bend=None)[source]#

Bases: PackageBodyMixin, GridPadShapeGeneratorMixin, LandpatternGenerator

Parameters:
class AxialTwoPinDecorated(*args, **kwargs)[source]#

Bases: OriginMarkerMixin, ExcessCourtyard, AxialTwoPinBase

class PolarizedAxialTwoPin(*args, **kwargs)[source]#

Bases: CathodeAnodeNumbering, Pad1Marker, AxialTwoPinDecorated

class AxialTwoPin(*args, **kwargs)[source]#

Bases: LinearNumbering, AxialTwoPinDecorated