From 452c99b4d57dba706fb322c818b95067e7d0639c Mon Sep 17 00:00:00 2001 From: Lukas Chrostowski Date: Mon, 12 Feb 2024 11:16:53 -0800 Subject: [PATCH] Update spiral_paperclip.py --- klayout/EBeam/pymacros/pcells_EBeam_Beta/spiral_paperclip.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/klayout/EBeam/pymacros/pcells_EBeam_Beta/spiral_paperclip.py b/klayout/EBeam/pymacros/pcells_EBeam_Beta/spiral_paperclip.py index a56fe6c2..abb3d792 100644 --- a/klayout/EBeam/pymacros/pcells_EBeam_Beta/spiral_paperclip.py +++ b/klayout/EBeam/pymacros/pcells_EBeam_Beta/spiral_paperclip.py @@ -159,7 +159,7 @@ def produce_impl(self): points.append(DPoint(-length0-devrec*i,radius*2-offset+devrec*(i-1)+extra)) points.append(DPoint(-length0-devrec*i,-radius*2+offset-devrec*i-extra)) points.append(DPoint(length0+devrec*(i+1),-radius*2+offset-devrec*i-extra)) - if not ports_opposite: + if not self.ports_opposite: points.append(DPoint(length0+devrec*(i+1),radius*2-offset+devrec*(i+1)+extra)) points.append(DPoint(-length0-devrec*(i+1),radius*2-offset+devrec*(i+1)+extra)) points.pop(0) @@ -188,7 +188,7 @@ def produce_impl(self): # Create the pins on the input & output waveguides from SiEPIC.utils.layout import make_pin - if ports_opposite: + if self.ports_opposite: make_pin(self.cell, "optA", [length0+devrec*(i+1),-radius*2+offset-devrec*i-extra], self.wg_width, LayerPinRecN, 0) else: make_pin(self.cell, "optA", [-length0-devrec*(i+1),radius*2-offset+devrec*(i+1)+extra], self.wg_width, LayerPinRecN, 180)