diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2019-05-20 23:36:49 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2019-05-20 23:36:49 +0200 |
commit | 9bbb4f8f3a1d8e2bfe1f06c945081153435de940 (patch) | |
tree | 9624e2303ca87859e6952707e450eadca8e69bb3 /src/ee/kicad | |
parent | 5f3623b8dd26b37b9ea6011bf71467b2a608b5ff (diff) | |
download | ee-python-9bbb4f8f3a1d8e2bfe1f06c945081153435de940.tar.gz ee-python-9bbb4f8f3a1d8e2bfe1f06c945081153435de940.tar.bz2 ee-python-9bbb4f8f3a1d8e2bfe1f06c945081153435de940.tar.xz ee-python-9bbb4f8f3a1d8e2bfe1f06c945081153435de940.zip |
o Replacing digikey-normalize-facts with part-apply-function. Moving
code from tool to ee.digikey.functions.
Diffstat (limited to 'src/ee/kicad')
-rw-r--r-- | src/ee/kicad/functions.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ee/kicad/functions.py b/src/ee/kicad/functions.py index 2d8106a..c0d1780 100644 --- a/src/ee/kicad/functions.py +++ b/src/ee/kicad/functions.py @@ -39,6 +39,7 @@ def part_type_from_ref_type(ref_type): return uris.TRANSISTOR +# noinspection PyUnusedLocal def part_type_strategy(**kwargs): def on_part(part: Part) -> Part: pt = None @@ -62,6 +63,7 @@ def part_type_strategy(**kwargs): return on_part +# noinspection PyUnusedLocal def fix_value_strategy(**kwargs): def on_part(part: Part) -> Part: ref = part.get_only_schematic_reference() @@ -91,6 +93,7 @@ def fix_value_strategy(**kwargs): return on_part +# noinspection PyUnusedLocal def mpn_strategy(**kwargs): def on_part(part: Part) -> Part: for field in part.facts.all(sch_fact_types.field): @@ -104,6 +107,7 @@ def mpn_strategy(**kwargs): return on_part +# noinspection PyUnusedLocal def map_footprint(footprint_mappings=None, **kwargs): if footprint_mappings is None: return None |