Bessel.cpp::check_error() exits the python shell
Brought to you by:
pbienst
camfr/math/bessel/bessel.cpp :: checkerror()
function has an exit(-1)
call if something goes wrong, which also kills the python shell. This should instead just give up on the modesolve (or better, raise an exception) so the python script can decide what to do (eg. automatically readjust the search space).
Not sure how to best cause the bessel::checkerror() function
to fail without killing python shell.
Workaround is to run the modesolver in a separate thread, or via exec(mode solver python script)
, which I haven't tried myself yet.
Thanks for the bug report! Unfortunately, I'm longer active in Camfr development These people are still working on it a little bit though: http://www.lucedaphotonics.com/en
Thanks for letting me know. I'm trying to get this to (finally) compile for Python 2.7 on MacOS - if it works perhaps I'll try to push the code.
-- Demis
(Swnt frm my oPhone)
Related
Bugs: #10