DAETimeSeries.get_data#

DAETimeSeries.get_data(base_vars: BaseVar | List[BaseVar], *, a=None, rhs: bool = False)[source]#

Get time-series data, either for a variable or for the equation associated with the variable.

Parameters:
base_varBaseVar or a sequence of BaseVar(s)

The variable types and internal addresses are used for looking up the data.

aan array/list of int or None

Sub-indices into the address of base_var. Applied to each variable.

Returns:
np.ndarray

A two-dimensional array. Each row corresponds to one time step. Each column corresponds to a different different variable.