Skip to content

Commit

Permalink
Merge pull request #731 from nguyen-v/feat_col_net_label
Browse files Browse the repository at this point in the history
[Column List][Bom][Added] Added 'Net Label' column
  • Loading branch information
set-soft authored Nov 22, 2024
2 parents 2672c86 + 096500a commit 053e54f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions kibot/bom/bom.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,7 @@ def update_fields(self, conv, bottom_negative_x, x_origin, y_origin, angle_posit
if not self.fields[ColumnList.COL_DESCRIPTION_L]:
self.fields[ColumnList.COL_DESCRIPTION_L] = comp.desc
self.fields[ColumnList.COL_NET_NAME_L] = comp.net_name
self.fields[ColumnList.COL_NET_LABEL_L] = comp.net_name.split('/')[-1]
self.fields[ColumnList.COL_NET_CLASS_L] = comp.net_class
# KiCad attributes
self.fields[ColumnList.COL_DNP_L] = self.solve_multiple_attributes('kicad_dnp', 'DNP')
Expand Down
2 changes: 2 additions & 0 deletions kibot/bom/columnlist.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ class ColumnList:
COL_STATUS_L = COL_STATUS.lower()
COL_NET_NAME = 'Net Name'
COL_NET_NAME_L = COL_NET_NAME.lower()
COL_NET_LABEL = 'Net Label'
COL_NET_LABEL_L = COL_NET_LABEL.lower()
COL_NET_CLASS = 'Net Class'
COL_NET_CLASS_L = COL_NET_CLASS.lower()
# KiCad attributes
Expand Down

0 comments on commit 053e54f

Please sign in to comment.