flexcompute / tidy3d

Fast electromagnetic solver (FDTD) at scale.
https://docs.flexcompute.com/projects/tidy3d/en/latest/
GNU Lesser General Public License v2.1
179 stars 40 forks source link

Print solver warning messages to Python console #1951

Open tomflexcompute opened 3 weeks ago

tomflexcompute commented 3 weeks ago

There are some warnings in the logs but they are not printed in the console. One example is the warning about "TE mode specified in the mode source but no TE modes are found". Users think having this kind of messages printed out would be helpful.

momchil-flex commented 2 weeks ago

So currently, if there are warnings found in the log, a warning is printed saying that.

             WARNING: Warning messages were found in the solver log. For more   
             information, check 'SimulationData.log' or use                     
             'web.download_log(task_id)'. 

The idea behind this was not to have a large output if there are many warning messages in the log. If I understand correctly what you are proposing is instead to display them all?

tomflexcompute commented 2 weeks ago

Yes essentially. It's one of those situations where we can't make everyone happy. Some people prefer to see all the warnings so they know if there are potential issues. Some people prefer to have less warnings so the console/notebook look cleaner. I think we should probably lean towards the former and users can always turn off the warning if they want.