pywr.recorders.NumpyArrayStorageRecorder¶
-
class
pywr.recorders.NumpyArrayStorageRecorder¶ Recorder for timeseries information from a Storage node.
This class stores volume from a specific node 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
- node : pywr.core.Node
Node 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 unregistervaluesCompute a value for each scenario using temporal_agg_func. Attributes
agg_funcchildrencommentdataepsilonignore_nanis_constraintis_objectivemodelnamenodeparentstemporal_agg_func