Skip to content

Commit

Permalink
Format using ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
Bouni committed Jul 19, 2024
1 parent c521bdd commit 9421a81
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions fabrication.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,9 @@ def get_position(self, footprint):
bbox.Merge(pad.GetBoundingBox())
return bbox.GetCenter()
except:
self.logger.info("WARNING footprint %s: original position used", footprint.GetReference())
self.logger.info(
"WARNING footprint %s: original position used", footprint.GetReference()
)
return footprint.GetPosition()

def generate_geber(self, layer_count=None):
Expand Down Expand Up @@ -313,8 +315,11 @@ def generate_bom(self):
for fp in self.board.Footprints():
if fp.GetReference() == component and fp.IsDNP():
components.remove(component)
part[1] = ','.join(components)
self.logger.info("Component %s has 'Do not placed' enabled: removing from BOM", component)
part[1] = ",".join(components)
self.logger.info(
"Component %s has 'Do not placed' enabled: removing from BOM",
component,
)
if not add_without_lcsc and not part[3]:
continue
writer.writerow(part)
Expand Down

0 comments on commit 9421a81

Please sign in to comment.