Introduction
Disabling pop-up messages can improve automated workflows driven by Lumerical or Python script, for example, to avoid pausing execution when the warning in a pop-up is known and can be safely ignored. The flags used to hide the graphical user interface (GUI) also disable pop-up messages when executing scripts from the command prompt/terminal (Windows/Linux), or with the Python API. When executing sweeps or single simulations through the GUI, pop-up messages cannot be disabled.
Windows Command Prompt and Linux Terminal
When running the products using the command line interface, the -hide flag can be used to disable all pop-up messages along with the GUI when launching Lumerical products. For FDTD, the flag -nw can also be used. These flags can be combined with other flags.
Further information about launching with the command line , and other flags can be found in the Windows command prompt KB article and the Linux terminal KB article.
Example (Windows Command Prompt)
The following command executes a scripted solution for INTERCONNECT, saves the file in a different location, and disables pop-up messages.
"C:\Program Files\Lumerical\[[verpath]]\bin\interconnect.exe" -hide -run scriptfile.lsf -logall -o "C:\temp\logfiles\"
Example (Linux Terminal)
The following command executes a scripted solution for FDTD, disables safe mode, and disables pop-up messages.
“$ /opt/lumerical/[[verpath]]/bin/fdtd-solutions -hide -trust-script -run scriptfile.lsf”
Python API
When starting a simulation session, the constructor flag hide=True can be used to disable all pop-up messages along with the CAD/GUI environment. Further information about the python API can be found in the Python API KB article.
Example
Creating a session of FDTD with the constructor and storing it in an object:
fdtd = lumapi.FDTD(hide=True)
Creating a session of FDTD using the “with” context manager:
with lumpapi.FDTD(hide=True) as fdtd:
#all pop ups will be disabled
fdtd.addfdtd()
#simulation code below