-
…rk for absolute imports that are used as standard in Python 3.
-
This is needed for correct catching of exceptions by the SWIG interface on some operating systems.
-
gammalib::expand_env replaces ~ or ~user by the user's home directory, ~+ by the value of the PWD environment variable and ~- by the value of the OLDPWD variable. If the user or the PWD or OLDPWD variable are not found, no replacement is done. Update change-log.
-
…ependent on the swig version the results will differ)
-
I removed the -DSWIG_PYTHON_LEGACY_BOOL compile option for swig and corrected two unit test problems in test_GApplication.py and test_GFits.py that arose from this (see #1494). I then added a __setitem__(const std::string& name, const bool& val) method to GApplication and disallowed setting of a boolean parameter with an integer value. This results in the expected behavior.
-
…ts for GEbounds::contains() methods.
-
The formula for drawing random numbers on a sphere was not correct. This has now been corrected, and verify using a dedicated test script (test_model_spatial_const.py).
-
There are machine dependent differences in the computation of solid angles, related to the system dependent precision of trigonometric functions. To avoid errors on the large variety of systems, the required precision for the unit test has been reduced.
-
Added a logger() method that allows setting the logger for an optimizer (and that also allows to set the NULL pointer)
-
We should avoid using threads as this has portability issues.