DeMarcoLab / juno

juno is a simulation package for optical system design using full wave propagation.
https://demarcolab.github.io/juno
MIT License
59 stars 2 forks source link

Calling run_simulation.py on MASSIVE with config doesn't work #49

Open DavidDierickx opened 1 year ago

DavidDierickx commented 1 year ago

Missing " if len(sys.argv) >= 2: config_filename = os.path.join(folder_path, sys.argv[1])" check in "if name == "main":" for run_simulation.py so cannot run a simulation directly with simulation config.

Currently using a batch file with final line of "python run_simulation.py simulation/config.yaml" to run the simulation. I have added the requisite code on MASSIVE so that it can be run but believe it should be added to the base code.

Let me know if there is another way this should be called.