diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2019-06-14 10:40:31 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2019-06-14 10:40:31 +0200 |
commit | 89197dad4f5f427faa7fba12971b20037ad5ba71 (patch) | |
tree | 0124db8c8eec7f70b7169c2aa2fd67bc6c1adeb8 /src/ee/kicad | |
parent | d203763f31428bee3edba4383d37f992b0f8e186 (diff) | |
download | ee-python-89197dad4f5f427faa7fba12971b20037ad5ba71.tar.gz ee-python-89197dad4f5f427faa7fba12971b20037ad5ba71.tar.bz2 ee-python-89197dad4f5f427faa7fba12971b20037ad5ba71.tar.xz ee-python-89197dad4f5f427faa7fba12971b20037ad5ba71.zip |
split-parts-by-supplier: rename to split-bom-by-supplier.
digikey-create-bom: Implementing CSV generation for Digi-Key.
Diffstat (limited to 'src/ee/kicad')
-rw-r--r-- | src/ee/kicad/bom/__init__.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ee/kicad/bom/__init__.py b/src/ee/kicad/bom/__init__.py index 0392d66..e993adb 100644 --- a/src/ee/kicad/bom/__init__.py +++ b/src/ee/kicad/bom/__init__.py @@ -10,6 +10,7 @@ __all__ = [ ] +# TODO: use ee.part.bom.split_ref def split_ref(ref): """Split "C12" into a tuple that's useful for sorting by component reference. @@ -23,11 +24,11 @@ def split_ref(ref): val = groups[1] rest = groups[2] try: - return (ref, int(val), rest) + return ref, int(val), rest except ValueError: pass - return (ref, val, rest) + return ref, val, rest split_ref.r = re.compile("([A-Za-z]+)([0-9]+)(.*)") |