diff options
Diffstat (limited to 'src/ee/kicad')
-rw-r--r-- | src/ee/kicad/make_bom.py | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/ee/kicad/make_bom.py b/src/ee/kicad/make_bom.py index e061f15..2f5a2ac 100644 --- a/src/ee/kicad/make_bom.py +++ b/src/ee/kicad/make_bom.py @@ -8,8 +8,7 @@ from ee.kicad.model import Component from ee.kicad.read_schematic import read_schematics from ee.kicad.to_bom import to_bom, to_bom_xml from ee.tools import mk_parents -from ee.xml import bomFile -from ee.bom import part_type_uris +from ee.xml import bomFile, uris __all__ = [ "StrategyCallable", @@ -45,15 +44,15 @@ def part_type_strategy(component: Component, part: bomFile.Part) -> bomFile.Part lib, part_name = fp.split(":") if lib == "Capacitor_SMD": - part.part_typeProp = part_type_uris.CAPACITOR + part.part_typeProp = uris.CAPACITOR elif lib == "Resistor_SMD": - part.part_typeProp = part_type_uris.RESISTOR + part.part_typeProp = uris.RESISTOR elif lib == "Diode_SMD": - part.part_typeProp = part_type_uris.DIODE + part.part_typeProp = uris.DIODE elif lib == "Inductor_SMD": - part.part_typeProp = part_type_uris.INDUCTOR + part.part_typeProp = uris.INDUCTOR elif lib == "Crystal": - part.part_typeProp = part_type_uris.CRYSTAL + part.part_typeProp = uris.CRYSTAL return part |