Rename function in pin_group

This commit is contained in:
Matt Guthaus 2018-10-31 16:13:28 -07:00
parent c511d886bf
commit 2eedc703d1
2 changed files with 3 additions and 3 deletions

View File

@ -474,7 +474,7 @@ class pin_group:
self.grids,
self.enclosures))
def combine_pins(self, pg1, pg2):
def combine_groups(self, pg1, pg2):
"""
Combine two pin groups into one.
"""

View File

@ -195,9 +195,9 @@ class router(router_tech):
# Combine if at least 1 grid cell is adjacent
if pg1.adjacent(pg2):
combined = pin_group(pin_name, [], self)
combined.combine_pins(pg1, pg2)
combined.combine_groups(pg1, pg2)
debug.info(2,"Combining {0} {1} {2}:".format(pin_name, index1, index2))
debug.info(2, "\n {0}\n {1}".format(pg1.pins, pg2.pins))
debug.info(2, " {0}\n {1}".format(pg1.pins, pg2.pins))
debug.info(2," --> {0}\n {1}".format(combined.pins,combined.grids))
remove_indices.update([index1,index2])
pin_groups.append(combined)