-
The GModelSpectralSuperExpPlaw code has been reviewed for integration into the development tree. Most changes were related to code formatting, some changes were needed in the XML interface to correctly reflect the model type "PLSuperExpCutoff". A unit test method has been added to test_GModel, modelled on unit tests for other spectral models.
-
The mc() method went in endless loops as the exit condition of the while loop was inversed (the method continued looping when the energy was within the valid range and only exited when it was outside). The eval_gradients() method computed the gradients with respect to the parameter values and not the parameter factors. All gradients have be multiplied by the scales. Also, the gradients are now set to 0 if the parameters are fixed. Finally, the parameter "Prefactor" was renamed to "Normalization" because the parameter gives the integral flux under the Gaussian, not the prefactor.
-
Conflicts: .gitignore ChangeLog NEWS
-
The model type was set to DiffuseSource, although we deal here with an ExtendedSource. This has been corrected.
-
A simple test was added for the GModelSpatialMap class. This simple test verifies loading and saving of the model. No testing of the model access and simulation methods has been implemented so far.