Cast dict_values to a list for pin_groups

This commit is contained in:
Matt Guthaus 2018-12-07 13:02:50 -08:00
parent dfb2cf3cbd
commit 5ed9904855
1 changed files with 2 additions and 3 deletions

View File

@ -737,11 +737,10 @@ class router(router_tech):
gid = group_id[pin]
if gid not in group_map.keys():
group_map[gid] = pin_group(name=pin_name, pin_set=[], router=self)
group = group_map[gid]
# We always add it to the first set since they are touching
group.pins[0].add(pin)
group_map[gid].pins[0].add(pin)
self.pin_groups[pin_name] = group_map.values()
self.pin_groups[pin_name] = list(group_map.values())
# This is the old O(n^2) implementation
# def analyze_pins(self, pin_name):