-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
diff --git a/output_scripts/kicad/1-click-bom_fields.py b/output_scripts/kicad/1-click-bom_fields.py | ||
index cd0d5a0..f1eab4c 100644 | ||
--- a/output_scripts/kicad/1-click-bom_fields.py | ||
+++ b/output_scripts/kicad/1-click-bom_fields.py | ||
@@ -9,6 +9,7 @@ import kicad_netlist_reader | ||
import csv | ||
import sys | ||
import os | ||
+import re | ||
|
||
def myEqu(self, other): | ||
"""myEqu is a more advanced equivalence function for components which is | ||
@@ -65,6 +66,9 @@ partfields -= set( ['Reference', 'Value', 'Datasheet', 'Footprint'] ) | ||
|
||
columnset = compfields | partfields # union | ||
|
||
+ | ||
+ignore_columns = re.compile('[A-z0-9]*_URL|price') | ||
+columnset = [c for c in columnset if ignore_columns.match(c) is None] | ||
# prepend an initial 'hard coded' list and put the enchillada into list 'columns' | ||
columns = ['References', 'Qty'] + sorted(list(columnset)) | ||
|