desihub / specex

DESI spectrograph PSF fitting
BSD 3-Clause "New" or "Revised" License
0 stars 4 forks source link

Merge exception #33

Closed marcelo-alvarez closed 4 years ago

marcelo-alvarez commented 4 years ago

This PR fixes #32 by adding the line:

fedisableexcept (FE_INVALID|FE_DIVBYZERO|FE_OVERFLOW);

before

return EXIT_SUCCESS; 

in specex_desi_main.cc. This allows floating point exceptions to halt execution, as originally intended, while not causing the crash during python execution of specex.py.