Skip to content

ActivityObject.add_output

ActivityObject.add_output(type: str, name: str, t: List[float] = None, f: List[float] = None, unit: str = None, feature: bool = False) -> None

Adds a new output to the ActivityObject object.

Parameters

type : str
Determines the type of the output. Valid types are: "constant", "piecewise_constant", "piecewise_linear", or "cubic_spline"
name : str
Name of the output. Model inputs with corresponding names to an output will be automatically linked.
t : List[float], optional
Sequence of time points during which corresponding values f apply.
f : List[float], optional
Sequence of values to be applied at corresponding time points t.
unit : str, optional
Unit of the activity output.
feature : bool, default=False
If true, will add the activity output as a feature in any connected SimulationObject object.

Return type

None

Return value

None