Skip to content

Commit

Permalink
swap pcbnew.MODULE.PadsList() also in other plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
MitjaNemec committed Jul 29, 2019
1 parent 76bfb04 commit dc8832b
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion pad2pad_track_distance/action_pad2pad_track_distance.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def Run(self):
pads = []
for mod in modules:
# get their pads
module_pads = mod.PadsList()
module_pads = mod.Pads()
# get net
for pad in module_pads:
pads.append(pad)
Expand Down
2 changes: 1 addition & 1 deletion pad2pad_track_distance/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18
19
6 changes: 3 additions & 3 deletions save_restore_layout/save_restore_layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ def get_nets_from_modules(modules):
nets = []
for mod in modules:
# get their pads
pads = mod.mod.PadsList()
pads = mod.mod.Pads()
# get net
for pad in pads:
nets.append(pad.GetNetname())
Expand Down Expand Up @@ -428,8 +428,8 @@ def get_net_pairs(self, modules_sheet_1, modules_sheet_2):
for pair in mod_pairs:
index = mod_pairs.index(pair)
# get all footprint pads
p_mod_pads = pair[0].PadsList()
s_mod_pads = pair[1].PadsList()
p_mod_pads = pair[0].Pads()
s_mod_pads = pair[1].Pads()
# create a list of padsnames and pads
p_pads = []
s_pads = []
Expand Down
2 changes: 1 addition & 1 deletion save_restore_layout/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
11
12
2 changes: 1 addition & 1 deletion swap_units/swap_units.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ def swap(board, pad_1, pad_2):
# TODO might want to add also swapping pins in coresponding units in case of multiple schematics
logger.info("Swapping pins in layout")
module = pad_1.GetParent()
module_pads = module.PadsList()
module_pads = module.Pads()
pins_of_unit_1 = pins_by_unit[int(unit_1) - 1]
pins_of_unit_2 = pins_by_unit[int(unit_2) - 1]
# generate pretier list of pins, where all the pin data is joined together and serves as a hash for comparison
Expand Down
2 changes: 1 addition & 1 deletion swap_units/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
33
34

0 comments on commit dc8832b

Please sign in to comment.