diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2019-05-20 15:27:38 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2019-05-20 15:27:38 +0200 |
commit | 9eba62ef1d6b4896de693976116f69a9692332d9 (patch) | |
tree | 98ae9fdf48818206a6db552938c53e35abf1c45d /src/ee/part/common_fact_types.py | |
parent | def66a1bd81283d38b468b66ff6e4e34621a5ce2 (diff) | |
download | ee-python-9eba62ef1d6b4896de693976116f69a9692332d9.tar.gz ee-python-9eba62ef1d6b4896de693976116f69a9692332d9.tar.bz2 ee-python-9eba62ef1d6b4896de693976116f69a9692332d9.tar.xz ee-python-9eba62ef1d6b4896de693976116f69a9692332d9.zip |
ee:
o Adding FactType as a smaller wrapper around the fact uri.
o Adding ee.part.Facts, used as Part.facts
o Renaming 'type' uri to 'ee-component-type'.
kicad-make-bom: Removing strategy functionality, replaced with
part-apply-function. Moving default strategy contents into
ee.kicad.functions.
Diffstat (limited to 'src/ee/part/common_fact_types.py')
-rw-r--r-- | src/ee/part/common_fact_types.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ee/part/common_fact_types.py b/src/ee/part/common_fact_types.py new file mode 100644 index 0000000..12c099e --- /dev/null +++ b/src/ee/part/common_fact_types.py @@ -0,0 +1,7 @@ +import ee +from ee.part import EeValueFactType, fact_keys + +resistance = EeValueFactType(fact_keys.resistance, "Resistance", ee.resistance_type) +capacitance = EeValueFactType(fact_keys.capacitance, "Capacitance", ee.capacitance_type) + +ee_component_type = EeValueFactType(fact_keys.ee_component_type, "EE component type", ee.capacitance_type) |