Adapted test_kicost_simple references.
This commit is contained in:
parent
1a6e6548ed
commit
1878510a47
|
|
@ -1,5 +1,6 @@
|
|||
Prj:,KiBom Test Schematic,,,,Board Qty:,100
|
||||
Co.:,https://github.com/SchrodingersGat/KiBom,,,,Unit Cost:,0
|
||||
Prj date:,mar 30 mar 2021 09:46:24,,,,Total Cost:,0
|
||||
Global Part Info,,,,,,
|
||||
Refs,Value,Footprint,Manf#,Qty,Unit$,Ext$
|
||||
C1,1nF,,,100,,0
|
||||
|
|
|
|||
|
|
|
@ -1,5 +1,6 @@
|
|||
Prj:,KiBom Test Schematic,,,,Board Qty:,100
|
||||
Co.:,https://github.com/SchrodingersGat/KiBom,,,,Unit Cost:,0
|
||||
Prj date:,mar 30 mar 2021 09:46:24,,,,Total Cost:,0
|
||||
Global Part Info,,,,,,
|
||||
Refs,Value,Footprint,Manf#,Qty,Unit$,Ext$
|
||||
R1,1k,,,100,,0
|
||||
|
|
|
|||
|
|
|
@ -1,5 +1,6 @@
|
|||
Prj:,KiBom Test Schematic,,,,Board Qty:,100
|
||||
Co.:,https://github.com/SchrodingersGat/KiBom,,,,Unit Cost:,0
|
||||
Prj date:,mar 30 mar 2021 09:46:24,,,,Total Cost:,0
|
||||
Global Part Info,,,,,,
|
||||
Refs,Value,Footprint,Manf#,Qty,Unit$,Ext$
|
||||
C2,1000 pF,,,100,,0
|
||||
|
|
|
|||
|
|
|
@ -1,5 +1,6 @@
|
|||
Prj:,KiBom Test Schematic,,,,Board Qty:,100
|
||||
Co.:,https://github.com/SchrodingersGat/KiBom,,,,Unit Cost:,0
|
||||
Prj date:,mar 30 mar 2021 09:46:24,,,,Total Cost:,0
|
||||
Global Part Info,,,,,,
|
||||
Refs,Value,Footprint,Manf#,Qty,Unit$,Ext$
|
||||
C1,1nF,,,100,,0
|
||||
|
|
|
|||
|
|
|
@ -31,7 +31,7 @@ def convert2csv(xlsx, skip_empty=False, sheet=None):
|
|||
cmd.append(xlsx)
|
||||
p1 = subprocess.Popen(cmd, stdout=subprocess.PIPE)
|
||||
with open(csv, 'w') as f:
|
||||
p2 = subprocess.Popen(['egrep', '-i', '-v', r'(created|kicost|Total purchase)'], stdin=p1.stdout, stdout=f)
|
||||
p2 = subprocess.Popen(['egrep', '-i', '-v', r'(\$ date|created|kicost|Total purchase)'], stdin=p1.stdout, stdout=f)
|
||||
p2.communicate()[0]
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue