pywr.parameters.TablesArrayParameter¶
-
class
pywr.parameters.TablesArrayParameter(model, h5file, node, where='/', scenario=None, **kwargs)¶ -
__init__()¶ This Parameter reads array data from a PyTables HDF database.
The parameter reads data using the PyTables array interface and therefore does not require loading the entire dataset in to memory. This is useful for large model runs.
- Parameters
- h5filetables.File or filename
The tables file handle or filename to attach the CArray objects to. If a filename is given the object will open and close the file handles.
- nodestring
Name of the node in the tables database to read data from
- wherestring
Path to read the node from.
- scenarioScenario
Scenario to use as the second index in the array.
Methods
This Parameter reads array data from a PyTables HDF database.
after(self)before(self)finish(self)get_all_indices(self)get_all_values(self)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 ts, …)load(type cls, model, data)register(type cls)reset(self)set_double_variables(self, double[)set_integer_variables(self, int[)setup(self)unregister(type cls)value(self, Timestep ts, …)Attributes
childrencommentcomment: unicode
double_sizedouble_size: ‘int’
h5fileh5file: object
h5storeh5store: object
integer_sizeinteger_size: ‘int’
is_variableis_variable: ‘bool’
modelnamenodenode: object
parentsscenarioscenario: pywr._core.Scenario
sizewherewhere: object
-