Skip to content

Commit

Permalink
Update load_lumapi.py
Browse files Browse the repository at this point in the history
Dealing with a situation where Lumerical was partially deleted and upgraded, leaving an empty folder that previously contained lumapi.py
  • Loading branch information
lukasc-ubc committed Feb 4, 2025
1 parent 57b07a7 commit 2d02846
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion klayout_dot_config/python/SiEPIC/lumerical/load_lumapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,11 @@ def load_lumapi(verbose=False):
print('SiEPIC.lumerical.load_api: Lumerical lumapi.py not found')
warning = pya.QMessageBox()
warning.setStandardButtons(pya.QMessageBox.Cancel)
warning.setText("Lumerical's lumapi.py not found.")
warning.setText("Lumerical's lumapi.py not found. Please check the folder: %s, and try again." % path)
warning.setInformativeText("Some SiEPIC-Tools Lumerical functionality will not be available.")
pya.QMessageBox_StandardButton(warning.exec_())
# Delete the KLayout configuration
pya.Application.instance().set_config('siepic_tools_Lumerical_Python_folder', '')
return

# Save the Lumerical software location to the KLayout configuration
Expand Down

0 comments on commit 2d02846

Please sign in to comment.