pyaltium.sch._record#

Module Contents#

Classes#

SchLibItemRecord

An object record stored in a schematic.

SLIRUndefined

An object record stored in a schematic.

SLIRRectange

An object record stored in a schematic.

SLIRPin

An object record stored in a schematic.

SLIRLabel

An object record stored in a schematic.

Functions#

handle_pin_records(records)

Run through a list of records for a schematic component and handle pins.

get_sch_lib_item_record(record_params)

Returns an instantiated SchLibItemRecord of the apropriate type.

Attributes#

pyaltium.sch._record.handle_pin_records(records)#

Run through a list of records for a schematic component and handle pins.

Pins are a bit weird. There is no record type for them so they are just binary strings in the middle of other textual records.

That means we need to go through all the records and explicitely split this off, since they just tag along with whatever record preceeded them.

Parameters:

records (Iterable[Dict[bytes, bytes]]) –

Return type:

list

class pyaltium.sch._record.SchLibItemRecord(parameters)#

An object record stored in a schematic.

Parameters:

parameters (dict) –

rtype: pyaltium.sch._helpers.SchLibItemRecordType#
param_dict: dict#
draw(ax, part_display_mode=1)#

Draw this single object on matplotlib axes.

Parameters:
  • ax (matplotlib.pyplot.Axes) –

  • part_display_mode (int) –

Return type:

None

class pyaltium.sch._record.SLIRUndefined(parameters)#

Bases: SchLibItemRecord

An object record stored in a schematic.

Parameters:

parameters (dict) –

rtype#
class pyaltium.sch._record.SLIRRectange(parameters)#

Bases: SchLibItemRecord

An object record stored in a schematic.

Parameters:

parameters (dict) –

rtype#
class pyaltium.sch._record.SLIRPin(parameters)#

Bases: SchLibItemRecord

An object record stored in a schematic.

Parameters:

parameters (dict) –

rtype#
class pyaltium.sch._record.SLIRLabel(parameters)#

Bases: SchLibItemRecord

An object record stored in a schematic.

Parameters:

parameters (dict) –

rtype#
pyaltium.sch._record.SLIRType#
pyaltium.sch._record.record_types: Dict[pyaltium.sch._helpers.SchLibItemRecordType, SchLibItemRecord]#
pyaltium.sch._record.get_sch_lib_item_record(record_params)#

Returns an instantiated SchLibItemRecord of the apropriate type.

Return type:

SchLibItemRecord