pywr.recorders.NumpyArrayParameterRecorder¶
-
class
pywr.recorders.NumpyArrayParameterRecorder¶ Recorder for timeseries information from a Parameter.
This class stores the value from a specific Parameter for each time-step of a simulation. The data is saved internally using a memory view. The data can be accessed through the data attribute or to_dataframe() method.
Parameters: - model : pywr.core.Model
- param : pywr.parameters.Parameter
Parameter instance to record.
- temporal_agg_func : str or callable (default=”mean”)
Aggregation function used over time when computing a value per scenario. This can be used to return, for example, the median flow over a simulation. For aggregation over scenarios see the agg_func keyword argument.
-
__init__($self, /, *args, **kwargs)¶ Initialize self. See help(type(self)) for accurate signature.
Methods
afteraggregated_valuebeforefinishloadregisterresetsetupto_dataframeReturn a pandas.DataFrame of the recorder data This DataFrame contains a MultiIndex for the columns with the recorder name as the first level and scenario combination names as the second level. unregistervaluesCompute a value for each scenario using temporal_agg_func. Attributes
agg_funcchildrencommentdataepsilonignore_nanis_constraintis_objectivemodelnameparameterparentstemporal_agg_func