Skip to content

Commit

Permalink
Update ebeam_PWB_surface_taper.py
Browse files Browse the repository at this point in the history
fix rounding error in path, for 0.35
  • Loading branch information
lukasc-ubc committed Feb 12, 2024
1 parent bcd57d5 commit 28a6c36
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ class ebeam_PWB_surface_taper(pya.PCellDeclarationHelper):
V2: Sept 8, 2020
V3: Dec 4, 2020
blin@ece.ubc.ca
Lukas, 2024/02/12: rounding error on width conversion to integer, fixed using to_itype.
"""

def __init__(self):
Expand Down Expand Up @@ -54,6 +56,7 @@ def produce(self, layout, layers, parameters, cell):
# import neccessary libraries
from math import pi, sin, cos, tan
from SiEPIC._globals import PIN_LENGTH as pin_length
from SiEPIC.extend import to_itype
import ctypes

# fetch the parameters
Expand All @@ -71,8 +74,8 @@ def produce(self, layout, layers, parameters, cell):
Layer31SiN = ly.layer(self.ZEP_invert)
Layer63N = ly.layer(self.Grouse_Si_Keepout)

w1 = self.Wtip/dbu
w2 = self.Wwaveguide/dbu
w1 = to_itype(self.Wtip, dbu)
w2 = to_itype(self.Wwaveguide, dbu)
offset = self.edge_offset
angle = self.OxOp_angle * (pi/180)
excl = 750
Expand Down

0 comments on commit 28a6c36

Please sign in to comment.