Skip to main content
Cube.create_parameter_simulation(
    name: str,
    *,
    measures: Annotated[Mapping[str, Constant | None], Field(min_length=1)],
    levels: Sequence[Level] = (),
    base_scenario_name: str = 'Base',
) → Table
Create a parameter simulation and its associated measures.

Parameters

name

The name of the simulation. This is also the name of the corresponding table that will be created.

measures

The mapping from the names of the created measures to their default value.

levels

The levels to simulate on.

base_scenario_name

The name of the base scenario.
Creating a parameter simulation on one level:
  • France crash is the name of the scenario.
  • France is the coordinate at which the value will be changed.
  • 0.8 is the value the Country parameter measure will have in this scenario.
Drilldown to the Country level for more details:
Creating a parameter simulation on multiple levels:
When several rules contain None, the one where the first None appears last takes precedence.
Creating a parameter simulation without levels:
Creating a parameter simulation with multiple measures: