message_ix_models.model.transport.build.add_structure
- message_ix_models.model.transport.build.add_structure(c: Computer) None[source]
Add tasks to c for structures required by
transport.build.These include:
The following keys only if not already present in c. If, for example, c is a
Reporterprepared from an already-solvedScenario, the existing tasks referring to the Scenario contents are not changed.All tasks from
STRUCTURE_STATIC.c::transport: the \(c\) set of theaddmember ofConfig.spec, transport commodities to be added.c::transport+base: all \(c\) that will be present in the build modelcg: “consumer group” set elements.indexers:cg:cgas indexers.nodes: \(n\) in the base model.indexers:scenario:dictmapping “scenario” to the short form ofConfig.ssp(for instance, “SSP1”), for indexing.t::transport: all transport \(t\) to be added,list.t::transport agg:dictmapping “t” to the output ofget_technology_groups(). For use with operators like ‘aggregate’, ‘select’, etc.t::transport all:dictmapping “t” tot::transport. .. todo:: Choose a more informative key.t::transport modes:Config.demand_modes.t::transport modes 0:dictmapping “t” to the keys only fromt::transport agg. Use with ‘aggregate’ to produce the sum across modes, including “non-LDV”.t::transport modes 1: same ast::transport modes 0except excluding “non-ldv”.t::RAILetc.: transport \(t\) in the “RAIL” mode/group aslistofstr. Seeget_technology_groups().t::transport RAILetc.:dictmapping “t” to the elements oft::RAIL.