From 5ed9904855bd034f7e788617f3510eb6d54d669a Mon Sep 17 00:00:00 2001 From: Matt Guthaus Date: Fri, 7 Dec 2018 13:02:50 -0800 Subject: [PATCH] Cast dict_values to a list for pin_groups --- compiler/router/router.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/compiler/router/router.py b/compiler/router/router.py index 5dd11414..6b1a1535 100644 --- a/compiler/router/router.py +++ b/compiler/router/router.py @@ -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):