RoutineBase.get#

RoutineBase.get(src: str, idx, attr: str = 'v', horizon: int | str | Iterable | None = None)[source]#

Get the value of a variable or parameter.

Parameters:
src: str

Name of the variable or parameter.

idx: int, str, or list

Index of the variable or parameter.

attr: str

Attribute name.

horizon: list, optional

Horizon index.