diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2019-02-24 21:51:38 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2019-02-24 21:51:38 +0100 |
commit | 80e0623913e87c6480049520590e424a831e0401 (patch) | |
tree | ff27e1d269cac886dd06ab4f9924719f84794e38 /src/ee/kicad | |
parent | 8aae5d032dd30118b6d992018391a8bd5be759e4 (diff) | |
download | ee-python-80e0623913e87c6480049520590e424a831e0401.tar.gz ee-python-80e0623913e87c6480049520590e424a831e0401.tar.bz2 ee-python-80e0623913e87c6480049520590e424a831e0401.tar.xz ee-python-80e0623913e87c6480049520590e424a831e0401.zip |
Digikey: replacing requests-based code with selenium.
Adding new tools: digikey-import-parts and digikey-refresh-parts.
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 |