Skip to content

Commit

Permalink
[Position] Moved the processed columns to an internal member
Browse files Browse the repository at this point in the history
  • Loading branch information
set-soft committed Sep 6, 2024
1 parent ecff968 commit 71d12e9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kibot/out_position.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def config(self, parent):
new_col = col.id
new_name = col.name if col.name else new_col
new_columns.append(PosColumns(new_col, new_name))
self.columns = new_columns
self._columns = new_columns
self._expand_ext = 'pos' if self.format == 'ASCII' else self.format.lower()

def _do_position_plot_ascii(self, output_dir, columns, modulesStr, maxSizes, modules_side):
Expand Down Expand Up @@ -257,7 +257,7 @@ def run(self, fname):
self.run_gerber(output_dir)
return
self.filter_pcb_components()
columns = tuple(o.name for o in self.columns)
columns = tuple(o.name for o in self._columns)
conv = GS.unit_name_to_scale_factor(self.units)
# Format all strings
comps_hash = self.get_refs_hash_multi()
Expand Down Expand Up @@ -313,7 +313,7 @@ def run(self, fname):
float_format = "{{:.{}f}}".format(self.right_digits)
else:
float_format = "{}"
for col in self.columns:
for col in self._columns:
k = col.id
if k == 'Ref':
row.append(quote_char+ref+quote_char)
Expand Down

0 comments on commit 71d12e9

Please sign in to comment.