Skip to content

Commit

Permalink
Update taper_bezier.py
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasc-ubc committed Jul 29, 2024
1 parent e5fc52f commit 9d444bc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions klayout/EBeam/pymacros/pcells_EBeam_Beta/taper_bezier.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ def can_create_from_shape_impl(self):
return False

def produce(self, layout, layers, parameters, cell):
from packaging import version
import SiEPIC
if version.parse(SiEPIC.__version__) < version.parse('0.5.11'):
raise Exception("Errors", "This PCell requires SiEPIC-Tools version 0.5.11 or greater. You have %s" % SiEPIC.__version__)

from SiEPIC.utils.geometry import bezier_cubic
from SiEPIC.extend import to_itype
from SiEPIC.utils.layout import make_pin
Expand Down

0 comments on commit 9d444bc

Please sign in to comment.