tidy3d icon indicating copy to clipboard operation
tidy3d copied to clipboard

web.monitor exits with an abstruse error if solver errors

Open momchil-flex opened this issue 3 years ago • 1 comments

If a simulation errors e.g. on preprocessing, web.monitor exits with an abstruse and unrelated error. I am thinking of generally reorganizing internal logging such that hopefully the error message at any stage is caught and written in tidy3d.log. We need to also reorganize some of the frontend to deliver that to the user. For starters, web.monitor should be rewritten to check at every stage if the status is error, and if so, to try and download tidy3d.log and display it to the user. I think this can be a part of get_status()?

More generally we should also think where else this should be done - probably in web.load, web.get_info... So we may move get_status() outside of web.monitor?

momchil-flex avatar Apr 25 '22 18:04 momchil-flex

I think all of this makes sense. (making part of get status, moving get_status outside of web.monitor()).

tylerflex avatar Apr 28 '22 21:04 tylerflex

consolidating in #544

tylerflex avatar Oct 08 '22 11:10 tylerflex