Skip to content

Commit

Permalink
version update
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasc-ubc committed Jul 29, 2024
1 parent cd2fc67 commit 0f68acf
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 7 deletions.
3 changes: 3 additions & 0 deletions klayout/EBeam/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,7 @@
# then import all the technology modules
from . import pymacros

# display the registered libraries
print('Loaded technology libraries: %s' % pya.Library.library_names())


Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@
from SiEPIC.extend import to_itype
from SiEPIC.scripts import connect_pins_with_waveguide, connect_cell

if SiEPIC.__version__ < '0.5.1':
from packaging import version
if version.parse(SiEPIC.__version__) < version.parse('0.5.1'):
pya.MessageBox.warning("Errors", "This example requires SiEPIC-Tools version 0.5.1 or greater.", pya.MessageBox.Ok)

# define layout parameters in the class below
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ def dbl_bus_ring_res():
cell, ly = new_layout(tech_name, 'top', GUI=True, overwrite = True)
floorplan(cell, 605e3, 410e3)

if SiEPIC.__version__ < '0.5.1':
from packaging import version
if version.parse(SiEPIC.__version__) < version.parse('0.5.1'):
pya.MessageBox.warning("Errors", "This example requires SiEPIC-Tools version 0.5.1 or greater.", pya.MessageBox.Ok)

# Layer mapping:
Expand Down
3 changes: 2 additions & 1 deletion klayout/EBeam/pymacros/Example_scripted_layouts/MZI.lym
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ if Python_Env == 'Script':

tech_name = 'EBeam'

if SiEPIC.__version__ &lt; '0.5.1':
from packaging import version
if version.parse(SiEPIC.__version__) &lt; version.parse('0.5.1'):
raise Exception("Errors", "This example requires SiEPIC-Tools version 0.5.1 or greater.")

'''
Expand Down
3 changes: 2 additions & 1 deletion klayout/EBeam/pymacros/Example_scripted_layouts/NURBS.lym
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ dbu = ly.dbu
if TECHNOLOGY['technology_name'] not in 'EBeam':
raise Exception ('This example needs to be executed in a layout with Technology = EBeam')

if SiEPIC.__version__ &lt; '0.3.71':
from packaging import version
if version.parse(SiEPIC.__version__) &lt; version.parse('0.3.71'):
pya.MessageBox.warning("Errors", "This example requires SiEPIC-Tools version 0.3.71 or greater.", pya.MessageBox.Ok)

# Import functions from SiEPIC-Tools
Expand Down
3 changes: 2 additions & 1 deletion klayout/EBeam/pymacros/SiEPIC_EBeam_Library_Beta.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,8 @@ def PCell_get_parameters ( pcell ):

verbose=False

print('SiEPIC_EBeam_Library_Beta, version %s' % version)
if verbose:
print('SiEPIC_EBeam_Library_Beta, version %s' % version)

import pya
from pya import *
Expand Down
3 changes: 1 addition & 2 deletions klayout/EBeam/pymacros/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
print('SiEPIC-EBeam-PDK Python module: pymacros')
# print('SiEPIC-EBeam-PDK Python module: pymacros')

from . import SiEPIC_EBeam_Library, SiEPIC_EBeam_Library_SiN, SiEPIC_EBeam_Library_Dream, SiEPIC_EBeam_Library_Beta, SiEPIC_EBeam_Library_ANT




0 comments on commit 0f68acf

Please sign in to comment.