• All files needed for SPI interface implementation have been created by copying the existing COMPTEL interface and by making the relevant modifications. TODOs have been added at the relevant sections of the code to signal the code that needs to be implemented. A dummy unit test has been created by cloning the relevant C++ and Python tests from the COMPTEL interface. The code compiles and all unit tests pass successfully. This essentially closes action #744.
    Jürgen Knödlseder authored
     
    Browse Dir »

  • Jürgen Knödlseder authored
     
    Browse Dir »
  • The read() and write() methods now handle the reading and writing of instrument specific model scale factors. The spatial() method uses the scale factors to scale the IRF accordingly, if required.
    Jürgen Knödlseder authored
     
    Browse Dir »
  • A vector of GModelPar objects has been added to the GModel class that can hold instrument specific model scaling factors. The name of each parameter specifies the instrument, which will be converted automatically in upper case.
    
    The scale factors can be set and accessed using the scale() methods. If the scale method is called for an instrument for which no instrument specific scale factor has been defined, unity is returned (hence the model will not be scaled).
    
    The class now provides the protected methods read_scales() and write_scales() for reading and writing of scale factors from and to a XML file. The scale factors are written to an optional <scaling> tag, which contains a list of tags of type <instrument ... />. These methods are used by the GModelSky class for reading and writing the scale factors.
    Jürgen Knödlseder authored
     
    Browse Dir »
  • The model parameter constructor allows allocating of a GModelPar object using a parameter name, a parameter value and an optional parameter scaling factor. This allows for one-line allocation of a GModelPar object.
    Jürgen Knödlseder authored
     
    Browse Dir »