From 878a4c68a20c9c4d05173126cfc52dc8760703ba Mon Sep 17 00:00:00 2001 From: jan Date: Wed, 30 Mar 2022 23:57:06 -0700 Subject: [PATCH] Fix issue where layers without labels were being skipped --- snarl/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snarl/main.py b/snarl/main.py index c082406..ad5dda3 100644 --- a/snarl/main.py +++ b/snarl/main.py @@ -37,10 +37,10 @@ def trace_connectivity( nets_info = NetsInfo() merge_groups: List[List[NetName]] = [] - for layer, labels_for_layer in labels.items(): + for layer in metal_layers: point_xys = [] point_names = [] - for x, y, point_name in labels_for_layer: + for x, y, point_name in labels[layer]: point_xys.append((x, y)) point_names.append(point_name)