Raise an exception if a layer is both a metal and a via

This commit is contained in:
jan 2022-03-30 23:57:31 -07:00
parent 878a4c68a2
commit 348e2f4ed1

View File

@ -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