Menu

#10 Bessel.cpp::check_error() exits the python shell

v1.0_(example)
open
nobody
None
5
2016-04-21
2016-04-19
DeminJanu
No

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.

Related

Bugs: #10

Discussion

  • Peter Bienstman

    Peter Bienstman - 2016-04-21

    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

     
    • DeminJanu

      DeminJanu - 2016-04-21

      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)

      On Apr 21, 2016, at 00:46, Peter Bienstman pbienst@users.sf.net wrote:

      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

      [bugs:#10] Bessel.cpp::check_error() exits the python shell

      Status: open
      Group: v1.0_(example)
      Created: Tue Apr 19, 2016 10:35 PM UTC by DeminJanu
      Last Updated: Tue Apr 19, 2016 10:35 PM UTC
      Owner: nobody

      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.

      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/camfr/bugs/10/

      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

       

      Related

      Bugs: #10


Log in to post a comment.