pywr.recorders.TotalParameterRecorder¶
-
class
pywr.recorders.TotalParameterRecorder¶ Record the total value of a Parameter during a simulation.
This recorder can be used to track the sum total of the values returned by a Parameter during a models simulation. An optional factor can be provided to apply a linear scaling of the values. If the parameter represents a flux the integrate keyword argument can be used to multiply the values by the time-step length in days.
Parameters: - model : pywr.core.Model
- param : pywr.parameters.Parameter
The parameter to record.
- name : str (optional)
The name of the recorder
- factor : float (default=1.0)
Scaling factor for the values of param.
- integrate : bool (default=False)
Whether to multiply by the time-step length in days during summation.
-
__init__($self, /, *args, **kwargs)¶ Initialize self. See help(type(self)) for accurate signature.
Methods
afteraggregated_valuebeforefinishloadregisterresetsetupunregistervaluesAttributes
agg_funcchildrencommentepsilonfactorignore_nanintegrateis_constraintis_objectivemodelnameparameterparents