smif.controller.build module¶
Summary¶
Functions:
build_model_run |
Builds the model run |
get_model_run_definition |
Builds the model run |
get_narratives |
Load the narrative data from the sos model run configuration |
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_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 (