-
The coding and design conventions (CDC) document was also updated.
-
The isconstant() method signals if a model is temporally constant or not. This information can be used at an abstract level to perform yes or no a temporal integration of the model.
-
Add GChatter argument to print() method. The print() method now takes an argument of type GChatter to control the chattiness of the output in a homogenous manner. Pass NORMAL chatter level in __str__ method. Add chatter argument to print() methods. Use GLog::chatter() method to control the chattiness of the log stream operator. Add chatter() methods and provide member access through const references. Add chatter() methods, provide member access through const references, and declare one liners as inline methods. The chatter() methods control the new m_chatter attribute that is used to control the chattiness of the object's print() methods. name() and version() methods return const references. logFileOpen() method now sets the chattiness from the applications's chatter parameter, and name() and version() methods now return a const reference.
-
The haspar() method checks whether a parameter of a given name does exist in the model.
-
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.
-
In addition to the applicability to a given instrument, models can now also be defined to be applicable to a given observation identifier. This allows for example to specify a separate background model for each observation. A model may also apply to several observation identifiers. Methods id() have been added to convert from and to a string of observation identifiers. The interface for the isvalid() method has been changed. An observation identifier argument has been added that allows to check for the applicability to an observation.
-
The ostream and GLog functions are not defined at the GBase level.
-
…val() and eval_gradients() const
-
…eval() and eval_gradients(), replace par() by access operators and add more models and handle diffuse emission