pywr.parameters.RecorderThresholdParameter
- class pywr.parameters.RecorderThresholdParameter(model, Recorder recorder, initial_value=1, *args, **kwargs)
Returns one of two values depending on a Recorder value and a threshold
- Parameters:
- recorderpywr.recorder.Recorder
- __init__(*args, **kwargs)
Methods
__init__(*args, **kwargs)after(self)before(self)finish(self)get_all_indices(self)get_all_values(self)get_constant_value(self)Return a constant value.
get_double_lower_bounds(self)get_double_upper_bounds(self)get_double_variables(self)get_index(self, ScenarioIndex scenario_index)get_integer_lower_bounds(self)get_integer_upper_bounds(self)get_integer_variables(self)get_value(self, ScenarioIndex scenario_index)index(self, Timestep timestep, ...)Returns 1 if the predicate evalutes True, else 0
load(cls, model, data)register(cls)reset(self)set_double_variables(self, double[)set_integer_variables(self, int[)setup(self)unregister(cls)value(self, Timestep timestep, ...)Returns a value from the values attribute, using the index
Attributes
childrencommentcomment: str
double_sizedouble_size: 'int'
initial_valueinitial_value: object
integer_sizeinteger_size: 'int'
is_constantis_variableis_variable: 'bool'
modelnameparentsratchetratchet: 'bool'
recorderrecorder: pywr.recorders._recorders.Recorder
sizetagstags: dict
threshold