diff --git a/compiler/base/pin_layout.py b/compiler/base/pin_layout.py index a86aa07b..eb4cb2ad 100644 --- a/compiler/base/pin_layout.py +++ b/compiler/base/pin_layout.py @@ -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):