From 68a50615da2bf41d604a970a757ec537f48c7418 Mon Sep 17 00:00:00 2001 From: lukasc-ubc Date: Sat, 18 Nov 2023 21:11:58 -0800 Subject: [PATCH] Update ebeam_dc_halfring_straight.py --- .../pcells_EBeam/ebeam_dc_halfring_straight.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/klayout/EBeam/pymacros/pcells_EBeam/ebeam_dc_halfring_straight.py b/klayout/EBeam/pymacros/pcells_EBeam/ebeam_dc_halfring_straight.py index f6864e13..82b5d17f 100644 --- a/klayout/EBeam/pymacros/pcells_EBeam/ebeam_dc_halfring_straight.py +++ b/klayout/EBeam/pymacros/pcells_EBeam/ebeam_dc_halfring_straight.py @@ -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)