Skip to content

Commit bb87462

Browse files
committed
Fix handling of DNP in JLC PCB fab
1 parent 8855237 commit bb87462

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

kikit/fab/jlcpcb.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,11 @@ def exportJlcpcb(board, outputdir, assembly, schematic, ignore, field,
8989
ordercodeFields = [x.strip() for x in field.split(",")]
9090
bom = collectBom(components, ordercodeFields, refsToIgnore)
9191

92+
bom_refs = set(x for xs in bom.values() for x in xs)
93+
bom_components = [c for c in components if getReference(c) in bom_refs]
94+
9295
posData = collectPosData(loadedBoard, correctionFields,
93-
bom=components, posFilter=noFilter, correctionFile=correctionpatterns)
96+
bom=bom_components, posFilter=noFilter, correctionFile=correctionpatterns)
9497
boardReferences = set([x[0] for x in posData])
9598
bom = {key: [v for v in val if v in boardReferences] for key, val in bom.items()}
9699
bom = {key: val for key, val in bom.items() if len(val) > 0}

0 commit comments

Comments
 (0)