aboutsummaryrefslogtreecommitdiff
path: root/demo/thirdparty/olinuxino
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2019-03-15 07:58:06 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2019-03-15 08:30:07 +0100
commitb67aa2b41247991e361dec0963670b4e5108410a (patch)
tree67591b0f4cc6e767d0097c1afc3f08ad40ee19ea /demo/thirdparty/olinuxino
parent8d17fb5bc4b0dae0758e01a44d77d87acf2e686a (diff)
downloadee-python-b67aa2b41247991e361dec0963670b4e5108410a.tar.gz
ee-python-b67aa2b41247991e361dec0963670b4e5108410a.tar.bz2
ee-python-b67aa2b41247991e361dec0963670b4e5108410a.tar.xz
ee-python-b67aa2b41247991e361dec0963670b4e5108410a.zip
o Merging XSD files into one.
Diffstat (limited to 'demo/thirdparty/olinuxino')
-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")