-
Both methods for specifying the parameters of a "SmoothBrokenPowerLaw" model in an XML file are now supported. Updated the test to reflect the actual way a spectral model is constructed in GammaLib. The method still has some issues when generating the monte carlo. This is being worked on.
-
Added file "GModelSpectralSmoothBrokenPlaw.i" for python wrappers. Added file "model_point_smoothbplaw.xml" for testing the construction of the class from xml file. Updated "test_GModel.cpp" to include test of the 'GModelSpectralSmoothBrokenPlaw' class. Some work is still needed to ensure the test passes when running 'make check'.
-
The GModelTemporalFunc implements a temporal file function for the simulation of transient sources.
-
The GModelSpatial::region() method returns a pointer to a sky region that fully encloses the spatial model component.
-
Changed method name component_scale() to scale(). Changed member names from m_component_names to m_names and m_component_scales to m_scales.
-
# Conflicts: # AUTHORS # include/GTools.hpp # src/support/GTools.cpp
-
… including docs and unit tests
-
- New naming scheme. - New utility functions/constructor supporting cutoff-energy. - Usage of new helper functions for xml read-in/write-out.
-
The GModelSpectralRegistry::alloc() method now also checks for the existence of model parameters and allocates the appropriate model from the registry that is found in the XML file base on model type and parameter names. This allows now to have the same model type but different parameter names in the registry. The spectral model classes have been adapted to the new logic, and models have been added to the registry for all parameter combinations that may exist. The unit tests and documentation have been updated.
-
Remove the m_names members from the spatial, spectral and temporal registry classes and directly use the model type to find the appropriate model. The alloc() method now throws an exception if the model is not found. The new logic helped to reduced the code in the client classes (#1824)
-
This is in anticipate of the model name changes in release 1.2
-
This is an anticipation of the renaming of the spectral models that will come in release 1.2.
-
It seems better to not introduce the alias method but to use a type constructor instead. This allows writing out the same model type that was read in, enhancing the compatibility with the legacy XML format.
-
The following new names have been introduced for the spatial model components: * "PointSource" (alias: "SkyDirFunction") * "RadialDisk" (alias: "DiskFunction") * "RadialGaussian" (alias: "GaussFunction") * "RadialShell" (alias: "ShellFunction") * "EllipticalDisk" * "EllipticalGaussian" (alias: "EllipticalGauss") * "DiffuseIsotropic" (alias: "ConstantValue") * "DiffuseMap" (alias: "SpatialMap") * "DiffuseMapCube" (alias: "MapCubeFunction")