smif.controller.build module¶
Summary¶
Functions:
build_model_run |
Builds the model run | ||||||
get_initial_conditions_strategies |
Add pre-specified planning strategy for all initial conditions | ||||||
get_model_run_definition |
Builds the model run | ||||||
get_narratives |
Load the narrative data from the sos model run configuration | ||||||
get_pre_specified_planning_strategies |
Build pre-specified planning strategies for future investments | ||||||
get_scenario_objects |
|
||||||
get_sector_model_objects |
|||||||
get_strategies |
Reference¶
-
smif.controller.build.
get_model_run_definition
(directory, modelrun)[source]¶ Builds the model run
Parameters: Returns: The complete sos_model_run configuration dictionary with contained ScenarioModel, SosModel and SectorModel objects
Return type:
-
smif.controller.build.
get_scenario_objects
(scenarios, handler)[source]¶ Parameters: - scenarios (dict) –
- handler (smif.data_layer.DataInterface) –
Returns: Return type:
-
smif.controller.build.
get_pre_specified_planning_strategies
(model_run_config, handler)[source]¶ Build pre-specified planning strategies for future investments
Parameters: - model_run_config (dict) –
- handler (smif.data_layer.DataInterface) – An instance of the data interface
Returns: Return type:
-
smif.controller.build.
get_initial_conditions_strategies
(sector_model_objects)[source]¶ Add pre-specified planning strategy for all initial conditions
Parameters: sector_model_objects (list) – A list of SectorModel
Returns: Return type: list
-
smif.controller.build.
get_narratives
(handler, narrative_config)[source]¶ Load the narrative data from the sos model run configuration
Parameters: - handler (
smif.data_layer.DataInterface
) – - narrative_config (dict) – A dict with keys as narrative_set names and values as narrative names
Returns: A list of
smif.parameter.Narrative
objects populated with dataReturn type: - handler (