Skip to content
This repository was archived by the owner on Aug 9, 2024. It is now read-only.

Commit 9ddb8a1

Browse files
committed
Avoid crashing from incorrect presentation values
1 parent 21e5ad4 commit 9ddb8a1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

gdspy/library.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2273,7 +2273,9 @@ class GdsLibrary(object):
22732273
"LIBSECUR",
22742274
)
22752275
_unused_records = (0x05, 0x00, 0x01, 0x02, 0x034, 0x38)
2276-
_import_anchors = ["nw", "n", "ne", None, "w", "o", "e", None, "sw", "s", "se"]
2276+
_import_anchors = [
2277+
"nw", "n", "ne", "o", "w", "o", "e", "o", "sw", "s", "se", "o", "o", "o", "o", "o"
2278+
]
22772279
_pathtype_dict = {0: "flush", 1: "round", 2: "extended"}
22782280

22792281
__slots__ = "name", "cells", "unit", "precision", "_references"

0 commit comments

Comments
 (0)