Improve debug of non-manhattan error

This commit is contained in:
mrg
2020-02-25 00:34:28 +00:00
parent 125bcafb3e
commit 35110a4453
+4 -3
View File
@@ -322,9 +322,10 @@ class layout():
"""
Creates a path like pin with center-line convention
"""
debug.check(start.x == end.x or start.y == end.y,
"Cannot have a non-manhatten layout pin.")
if start.x != end.x and start.y != end.y:
file_name = "non_rectilinear.gds"
self.gds_write(file_name)
debug.error("Cannot have a non-manhatten layout pin: {}".format(file_name), -1)
minwidth_layer = drc["minwidth_{}".format(layer)]