From db118beeba1ba8d50e0d8e54eaecd7f19e8e8848 Mon Sep 17 00:00:00 2001 From: mrg Date: Tue, 2 Mar 2021 13:38:09 -0800 Subject: [PATCH] Zoom parameter should be optional in tech files. --- compiler/base/pin_layout.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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):