aboutsummaryrefslogtreecommitdiff
path: root/demo
diff options
context:
space:
mode:
Diffstat (limited to 'demo')
-rw-r--r--demo/thirdparty/olinuxino/py/olinuxino.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/demo/thirdparty/olinuxino/py/olinuxino.py b/demo/thirdparty/olinuxino/py/olinuxino.py
index cc33a81..2153613 100644
--- a/demo/thirdparty/olinuxino/py/olinuxino.py
+++ b/demo/thirdparty/olinuxino/py/olinuxino.py
@@ -2,12 +2,12 @@ import re
from ee.kicad import Component
from ee.kicad.make_bom import MakeBomStrategy
-from ee.xml import bomFile
+from ee.xml import types
from ee.xml.bom_file_utils import facts
class OlinuxinoMakeBomStrategy(MakeBomStrategy):
- def process_part(self, component: Component, part: bomFile.Part):
+ def process_part(self, component: Component, part: types.Part):
print(component.ref)
print(" value={}".format(component.value))
print(" footprint={}".format(component.footprint))
@@ -41,11 +41,11 @@ class OlinuxinoMakeBomStrategy(MakeBomStrategy):
print(" NA".format())
fs = facts(part, create=True)
- fs.add_fact(bomFile.Fact(key="capacitance", value=capacitance))
- fs.add_fact(bomFile.Fact(key="max_voltage", value=voltage))
- fs.add_fact(bomFile.Fact(key="tolerance", value=tolerance))
+ fs.add_fact(types.Fact(key="capacitance", value=capacitance))
+ fs.add_fact(types.Fact(key="max_voltage", value=voltage))
+ fs.add_fact(types.Fact(key="tolerance", value=tolerance))
if derating:
- fs.add_fact(bomFile.Fact(key="derating", value=derating))
+ fs.add_fact(types.Fact(key="derating", value=derating))
else:
print("FAIL")