From fe3bb9b938fdc5ff1dacba376079022aaededb27 Mon Sep 17 00:00:00 2001 From: lukasc-ubc Date: Tue, 10 Oct 2023 11:12:56 -0700 Subject: [PATCH] 0.3.56, add KLayout 0.28 check Former-commit-id: f3cd81f2624a743e9bf3f7a64c0871e84a9c88a5 --- klayout/EBeam/pymacros/SiEPIC_EBeam_Library.lym | 13 ++++++++++++- klayout/grain.xml | 2 +- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/klayout/EBeam/pymacros/SiEPIC_EBeam_Library.lym b/klayout/EBeam/pymacros/SiEPIC_EBeam_Library.lym index 28f1903a..a88d7c48 100644 --- a/klayout/EBeam/pymacros/SiEPIC_EBeam_Library.lym +++ b/klayout/EBeam/pymacros/SiEPIC_EBeam_Library.lym @@ -126,6 +126,17 @@ import os import pathlib import sys + +from SiEPIC._globals import KLAYOUT_VERSION, KLAYOUT_VERSION_3 +if KLAYOUT_VERSION < 28: + question = pya.QMessageBox() + question.setStandardButtons(pya.QMessageBox.Ok) + question.setText("SiEPIC-EBeam is no longer compatible with older versions (<0.28) of KLayout.") + KLayout_link0='https://www.klayout.de/build.html' + question.setInformativeText("\nSiEPIC-EBeam is no longer compatible with older versions (<0.28) of KLayout.\nPlease download an install the highest version of 0.28.x, from %s" % (KLayout_link0)) + pya.QMessageBox_StandardButton(question.exec_()) + + dir_path = os.path.dirname(os.path.realpath(__file__)) if dir_path not in sys.path: sys.path.append(dir_path) @@ -158,7 +169,7 @@ class SiEPIC_EBeam_Library(Library): print("Initializing '%s' Library." % library) # Set the description - self.description = "v0.3.55, Components with models" + self.description = "v0.3.56, Components with models" # Save the path, used for loading WAVEGUIDES.XML import os diff --git a/klayout/grain.xml b/klayout/grain.xml index dc13269f..522c417d 100644 --- a/klayout/grain.xml +++ b/klayout/grain.xml @@ -1,7 +1,7 @@ siepic_ebeam_pdk - 0.3.55 + 0.3.56 0.27 SiEPIC EBeam PDK A Process Design Kit for Silicon Photonics fabricated using Electron Beam Lithography (UW, ANT, SiEPICfab)