message_ix_models.model.transport.build.structure_from_scenarioinfo
- message_ix_models.model.transport.build.structure_from_scenarioinfo(c: Computer, info_key: KeyLike) None[source]
Add tasks to c for structures based on
ScenarioInfo.The following keys/tasks are added only if not already present in c. If, for instance, c is a
Reporterprepared from an already-solvedScenario, the existing tasks referring to the Scenario contents are not changed. Otherwise, they are derived from aScenarioInfoinstance found at info_key:y: all \(y\) in the model, including historical periods.cat_year: simulated data structure for “cat_year” with at least 1 row("firstmodelyear", y0).
y::model: \(y\) within the model horizon aslistofint; the output ofreport.operator.model_periods().y0: the first model period,int.duration_period:y: the output oftransport.operator.duration_period().