-
-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
158 changed files
with
16,305 additions
and
9,312 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,41 @@ | ||
''' | ||
""" | ||
SiEPIC-Tools package for KLayout | ||
''' | ||
""" | ||
|
||
__version__ = '0.5.12' | ||
__version__ = "0.5.12" | ||
|
||
print("KLayout SiEPIC-Tools version %s" %__version__) | ||
print("KLayout SiEPIC-Tools version %s" % __version__) | ||
|
||
import pya | ||
if '__version__' in dir(pya): | ||
|
||
if "__version__" in dir(pya): | ||
# pya.__version__ was introduced in KLayout version 0.28.6 | ||
KLAYOUT_VERSION = int(pya.__version__.split('.')[1]) | ||
KLAYOUT_VERSION = int(pya.__version__.split(".")[1]) | ||
else: | ||
KLAYOUT_VERSION = int(pya.Application.instance().version().split('.')[1]) | ||
KLAYOUT_VERSION_3 = int(pya.Application.instance().version().split('.')[2]) | ||
if KLAYOUT_VERSION < 28: | ||
KLAYOUT_VERSION = int(pya.Application.instance().version().split(".")[1]) | ||
KLAYOUT_VERSION_3 = int(pya.Application.instance().version().split(".")[2]) | ||
|
||
if KLAYOUT_VERSION < 28: | ||
# pya.Technologies was introduced in 0.27: https://www.klayout.de/doc-qt5/code/class_Library.html#method24 | ||
# SiEPIC-Tools is being updated to use this functionality, hence will no longer be supported for KLayout 0.26 | ||
raise Exception('\nSiEPIC-Tools is no longer compatible with older versions (0.26) of KLayout.\nPlease download an install the latest version from www.klayout.de') | ||
raise Exception( | ||
"\nSiEPIC-Tools is no longer compatible with older versions (0.26) of KLayout.\nPlease download an install the latest version from www.klayout.de" | ||
) | ||
else: | ||
from . import _globals | ||
|
||
if _globals.Python_Env == "KLayout_GUI": | ||
from . import extend, _globals, core, examples, github, scripts, utils, setup, install, verification | ||
from . import ( | ||
extend, | ||
_globals, | ||
core, | ||
examples, | ||
github, | ||
scripts, | ||
utils, | ||
setup, | ||
install, | ||
verification, | ||
) | ||
else: | ||
from . import _globals, core, utils, extend, verification, scripts | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.