Skip to content

Commit

Permalink
Update spiral_paperclip.py
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasc-ubc committed Feb 12, 2024
1 parent 98b72d6 commit 452c99b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions klayout/EBeam/pymacros/pcells_EBeam_Beta/spiral_paperclip.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 452c99b

Please sign in to comment.