Raise an exception if a layer is both a metal and a via
This commit is contained in:
parent
878a4c68a2
commit
348e2f4ed1
@ -14,6 +14,8 @@ def connectivity2layers(
|
||||
if via is not None:
|
||||
via_layers.add(via)
|
||||
|
||||
# TODO verify no overlap between metal and via layer specifications
|
||||
both = metal_layers.intersection(via_layers)
|
||||
if both:
|
||||
raise Exception(f'The following layers are both vias and metals!? {both}')
|
||||
|
||||
return metal_layers, via_layers
|
||||
|
Loading…
Reference in New Issue
Block a user