patch up CI
This commit is contained in:
@@ -10,11 +10,14 @@ def footprintFix(fpName):
|
||||
return propertiesList[1][-1] + propertiesList[2]
|
||||
|
||||
# Strip out library name from FP.
|
||||
return fpName.split(":")[-1]
|
||||
if isinstance(fpName, float):
|
||||
print("Malformed BOM, check you are not missing footprint assignments.")
|
||||
else:
|
||||
return fpName.split(":")[-1]
|
||||
|
||||
bom_file = pd.read_csv(sys.argv[1])
|
||||
|
||||
bom_file.columns = ['Designator', 'Value', 'Footprint', 'JLCPCB Part #']
|
||||
bom_file['Footprint'] = bom_file['Footprint'].apply(lambda x: footprintFix(x))
|
||||
|
||||
bom_file.to_csv(sys.argv[2], index=False)
|
||||
bom_file.to_csv(sys.argv[2], index=False)
|
||||
Reference in New Issue
Block a user