pywr.recorders.RollingMeanFlowNodeRecorder
- class pywr.recorders.RollingMeanFlowNodeRecorder(model, node, timesteps=None, days=None, name=None, **kwargs)
Records the mean flow of a Node for the previous N timesteps
- Parameters:
- modelpywr.core.Model
- nodepywr.core.Node
The node to record
- timestepsint
The number of timesteps to calculate the mean flow for
- namestr (optional)
The name of the recorder
See also
RollingMeanFlowNodeParameter
- __init__(*args, **kwargs)
Methods
__init__(*args, **kwargs)after(self)aggregated_value(self)before(self)finish(self)is_constraint_violated(self)Returns true if the value from this Recorder violates its constraint bounds.
load(cls, model, data)register(cls)reset(self)setup(self)unregister(cls)values(self)Attributes
agg_funcchildrencommentcomment: str
constraint_lower_boundsconstraint_upper_boundsdatadaysdays: 'int'
epsilonepsilon: 'double'
ignore_nanignore_nan: 'bool'
is_constraintReturns true if either upper or lower constraint bounds is defined.
is_double_bounded_constraintReturns true if upper and lower constraint bounds are both defined and not-equal to one another.
is_equality_constraintReturns true if upper and lower constraint bounds are both defined and equal to one another.
is_lower_bounded_constraintReturns true if lower constraint bounds is defined and upper constraint bounds is not.
is_objectiveis_upper_bounded_constraintReturns true if upper constraint bounds is defined and lower constraint bounds is not.
modelnamenodeparentstagstags: dict
timestepstimesteps: 'int'