Zoom parameter should be optional in tech files.

This commit is contained in:
mrg 2021-03-02 13:38:09 -08:00
parent da3a100301
commit db118beeba
1 changed files with 5 additions and 1 deletions

View File

@ -396,10 +396,14 @@ class pin_layout:
# Add the text in the middle of the pin.
# This fixes some pin label offsetting when GDS gets
# imported into Magic.
try:
zoom = GDS["zoom"]
except KeyError:
zoom = None
newLayout.addText(text=self.name,
layerNumber=layer_num,
purposeNumber=label_purpose,
magnification=GDS["zoom"],
magnification=zoom,
offsetInMicrons=self.center())
def compute_overlap(self, other):