• 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.
    Jürgen Knödlseder authored
     
    Browse File »

  • 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)
    Jürgen Knödlseder authored
     
    Browse File »


















  • The GModel::is_valid() method now allows specifying empty strings for the instrument and id parameters that will skip the specific model validity check. This allows to check for models of a given identifier whatever the instrument, or for models for a given instrument, whatever the identifier.
    Jürgen Knödlseder authored
     
    Browse File »

  • The normalize attribute provides control over whether a map should be normalize or not. By default a map will be normalize to that the spectral model provides the correct fluxes, but for some specific analyses, normalization can now be switched off by adding normalize="0" in the XML file. The attribute has also be added as optional argument to the constructors. A unit test has been added that checks the functionnality.
    Jürgen Knödlseder authored
     
    Browse File »

  • 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.
    Jürgen Knödlseder authored
     
    Browse File »