VariablePath#
- class impulso.scenario.VariablePath(*, variable, values)[source]#
Bases:
ImpulsoBaseModelPin a future endogenous variable’s path (hard condition, forecast axis).
Values run from forecast step 1; a scalar broadcasts to all steps, an array of length L < steps pins steps 1..L and leaves the rest free, and NaN entries mark unconstrained steps. Designed for the forecast-side conditioning methods (conditional_forecast, structural_scenario), which arrive with the next layers of the scenario stack.
- values#
Scalar (broadcast) or 1-D array of pinned values with NaN marking free steps.
- Type:
float | np.ndarray
- model_config = {'arbitrary_types_allowed': True, 'frozen': True}#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].