pywr.core.ScenarioIndex¶
-
class
pywr.core.
ScenarioIndex
(int global_id, int[:] indices)¶ A ScenarioIndex is an indexer for a given combination of scenarios.
The ScenarioIndex is used to represent a given combination of scenarios during a simulation. It is given to Parameter instances to allow them to alter their calculations based on each scenario. Instances of this class are generated by Pywr, and users are unlikely to need to instantiate this class.
See also
- Attributes
- global_idint
Read-only global scenario index that this ScenarioIndex refers to.
- indicesnp.array
The indices for each of the Scenarios in this model.
-
__init__
(*args, **kwargs)¶ Initialize self. See help(type(self)) for accurate signature.
Methods
__init__
(*args, **kwargs)Initialize self.
Attributes
global_id
indices