Fix issue where layers without labels were being skipped

This commit is contained in:
jan 2022-03-30 23:57:06 -07:00
parent dc8f33da20
commit 878a4c68a2

View File

@ -37,10 +37,10 @@ def trace_connectivity(
nets_info = NetsInfo() nets_info = NetsInfo()
merge_groups: List[List[NetName]] = [] merge_groups: List[List[NetName]] = []
for layer, labels_for_layer in labels.items(): for layer in metal_layers:
point_xys = [] point_xys = []
point_names = [] 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_xys.append((x, y))
point_names.append(point_name) point_names.append(point_name)