only warn for different-named nets

This commit is contained in:
Jan Petykiewicz 2022-04-05 18:22:59 -07:00
parent 81746e6a5f
commit 9b5d0112dd

View File

@ -126,7 +126,9 @@ def trace_connectivity(
# Merge any nets that were shorted by having their labels on the same polygon # Merge any nets that were shorted by having their labels on the same polygon
for group in merge_groups: for group in merge_groups:
logger.warning(f'Nets {group} are shorted on layer {metal_layer}') net_names = set(nn.name for nn in group)
if len(net_names) > 1:
logger.warning(f'Nets {net_names} are shorted on layer {metal_layer}')
first_net, *defunct_nets = group first_net, *defunct_nets = group
for defunct_net in defunct_nets: for defunct_net in defunct_nets:
nets_info.merge(first_net, defunct_net) nets_info.merge(first_net, defunct_net)