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 665eabe commit 68a5061
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,13 @@ def produce_impl(self):
# draw the half-circle
x = 0
y = r+w+g
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))

try:
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:
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))

# Pins on the top side:
pin = Path([Point(-r-Lc/2, y-PIN_LENGTH/2), Point(-r-Lc/2, y+PIN_LENGTH/2)], w)
shapes(LayerPinRecN).insert(pin)
Expand Down

0 comments on commit 68a5061

Please sign in to comment.