Skip to content

Commit

Permalink
Update ebeam_dc_halfring_straight.py
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasc-ubc committed Nov 19, 2023
1 parent 68a5061 commit 534a1da
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,11 @@ def produce_impl(self):
# draw the half-circle
x = 0
y = r+w+g
try:
from SiEPIC import __version__
if __version__ > '0.5.0':
self.cell.shapes(LayerSiN).insert(arc_wg_xy(x-Lc/2, y, r, w, 180, 270, dbu=dbu)) # dbu argument introduced in SiEPIC 0.5.1
self.cell.shapes(LayerSiN).insert(arc_wg_xy(x+Lc/2, y, r, w, 270, 360, dbu=dbu))
except:
else:
self.cell.shapes(LayerSiN).insert(arc_wg_xy(x-Lc/2, y, r, w, 180, 270))
self.cell.shapes(LayerSiN).insert(arc_wg_xy(x+Lc/2, y, r, w, 270, 360))

Expand Down

0 comments on commit 534a1da

Please sign in to comment.