pywr.parameters.InterpolatedFlowParameter
- class pywr.parameters.InterpolatedFlowParameter(model, node, flows, values, interp_kwargs=None, **kwargs)
Generic interpolation parameter that uses a node’s flow at the previous time-step for interpolation.
- Parameters:
- node: Node
Node to provide input flow values to interpolation caluculation
- flows: array_like
x coordinates of the data points for interpolation.
- valuesarray_like
y coordinates of the data points for interpolation.
- interp_kwargsdict
Dictionary of keyword arguments to pass to scipy.interpolate.interp1d class and used for interpolation.
- __init__(model, node, flows, values, interp_kwargs=None, **kwargs)
Methods
__init__
(model, node, flows, values[, ...])after
(self)before
(self)finish
(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_integer_lower_bounds
(self)get_integer_upper_bounds
(self)get_integer_variables
(self)get_value
(self, ScenarioIndex scenario_index)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 ts, ...)Attributes
children
comment
comment: unicode
double_size
double_size: 'int'
integer_size
integer_size: 'int'
interp_kwargs
is_constant
is_variable
is_variable: 'bool'
model
name
parents
size
tags
tags: dict