Skip to main content

Cube.create_parameter_simulation(name, *, measures, levels=(), base_scenario_name=‘Base’)

Create a parameter simulation and its associated measures.
  • Parameters:
    • name (str) – The name of the simulation. This is also the name of the corresponding table that will be created.
    • measures (Annotated *[*Mapping [str , Constant | None ] , Field *(*min_length=1 ) ]) – The mapping from the names of the created measures to their default value.
    • levels (Sequence [Level ]) – The levels to simulate on.
    • base_scenario_name (str) – The name of the base scenario.
  • Return type: Table

Example

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: