kicad2ems.core.parts

Lumped R / L / C parts from two-pad footprints: an element across the gap
between the pads, in their copper plane (units mm, y up, like the Board).

  kind / value  KiCad simulation fields first (Sim.Device R / L / C, Sim.Params
                "r=10k"), else the reference prefix R / L / C and the Value
                field ('4p7', '10k', '1.2nH', '0R5', ...)
  parasitics    optional footprint fields sim.esr / sim.esl make the part a
                series R-L-C
  skipped       DNP and exclude_from_sim footprints, Sim.Enable = 0, port
                footprints, parts whose two pads are not on modelled copper (net
                not in --nets) or not in line along x / y
  0 ohm         a metal strap between the pads instead of a lumped element
  package       the chip size from the footprint's name (R_0402_1005Metric:
                0402), its body L x W x H in mm (SIZES), centred between the
                pads: what the GUI's viewer draws; without a size in the name,
                the pads' outer extent
kicad2ems.core.parts.find_parts(board)[source]
Lumped parts among the footprints of a Board (board.Board: its
primitives, model coordinates) that sit on its copper. Returns (parts,
notes).
kicad2ems.core.parts.kind_value(fp)[source]
('R'|'L'|'C', value) of a footprint, or (None, reason).
kicad2ems.core.parts.not_fitted(fp)[source]
Whether a footprint is not fitted: DNP or excluded from simulation, or
its value says so ('NF', '0RNF_0402_Yageo', 'NF_SMD_0603', 'DNP', 'DNF':
a LimeRFE's BOM marks R90, R93, R374, R375 'NF', not assembled). Case
matters ('1nF' is a capacitance).
kicad2ems.core.parts.package(lib)[source]
The imperial chip size of a footprint name:
'Resistor_SMD:R_0402_1005Metric' -> '0402', 'C_1608Metric' -> '0603',
'L_0603' -> '0603'; None when the name has none.