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
Reporter
prepared 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 theadd
member 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
:cg
as indexers.nodes
: \(n\) in the base model.indexers:scenario
:dict
mapping “scenario” to the short form ofConfig.ssp
(for instance, “SSP1”), for indexing.t::transport
: all transport \(t\) to be added,list
.t::transport agg
:dict
mapping “t” to the output ofget_technology_groups()
. For use with operators like ‘aggregate’, ‘select’, etc.t::transport all
:dict
mapping “t” tot::transport
. .. todo:: Choose a more informative key.t::transport modes
:Config.demand_modes
.t::transport modes 0
:dict
mapping “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 0
except excluding “non-ldv”.t::RAIL
etc.: transport \(t\) in the “RAIL” mode/group aslist
ofstr
. Seeget_technology_groups()
.t::transport RAIL
etc.:dict
mapping “t” to the elements oft::RAIL
.