zhengqigao / BayesOpt-JLT2022

Code for our paper 'Automatic Synthesis of Broadband Silicon Photonic Devices via Bayesian Optimization'
MIT License
12 stars 1 forks source link

Running error #1

Closed zrzyyds closed 9 months ago

zrzyyds commented 1 year ago

Dr. Gao hello!I'm very interested in this work of yours. I tried running the code but got some errors and I don't know how to fix them.

Screenshot from 2023-09-12 14-54-13 Screenshot from 2023-09-12 14-54-37

I currently set up a conda virtual environment for this purpose and loaded some necessary function libraries. The python version is 3.10.

zhengqigao commented 1 year ago

Hi,

The first error implies that Lumerical FDTD simulation command is not found. fdtd-solutions is the command to run an FDTD simulation in terminal, See here. I would suggest first directly typing fdtd-solutions in a terminal to see if Lumerical FDTD could start successfully.

The second error implies the simulation result file is not found. This sim_res.txt file is generated by the lsf script (simulation script) and is parsed by Python script. It is possible because your fdtd-solution is not installed and thus simulation doesn't run, so no simulation results are stored.

zrzyyds commented 1 year ago

Dr. Gao thank you for your reply. The above error has been resolved and the program runs perfectly.