From 5f3623b8dd26b37b9ea6011bf71467b2a608b5ff Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Mon, 20 May 2019 22:46:45 +0200 Subject: common_fact_types: Adding key for footprint. functions: o Changing the structure of the functions, they're now factories that will be given kwargs and must return a function that processes the parts. o Adding new function to default set; 'map_footprint' that maps the KiCAD footprints to common footprints. part_validate_parts: Using only common keys. --- src/ee/part/common_fact_types.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/ee/part/common_fact_types.py') diff --git a/src/ee/part/common_fact_types.py b/src/ee/part/common_fact_types.py index 12c099e..10ba1eb 100644 --- a/src/ee/part/common_fact_types.py +++ b/src/ee/part/common_fact_types.py @@ -1,5 +1,7 @@ import ee -from ee.part import EeValueFactType, fact_keys +from ee.part import EeValueFactType, fact_keys, FactType + +footprint = FactType(fact_keys.footprint, "Footprint") resistance = EeValueFactType(fact_keys.resistance, "Resistance", ee.resistance_type) capacitance = EeValueFactType(fact_keys.capacitance, "Capacitance", ee.capacitance_type) -- cgit v1.2.3