message_ix_models.tools.inter_pipe.Config
- class message_ix_models.tools.inter_pipe.Config(first_model_year: int, pipe: message_ix_models.tools.inter_pipe.TechConfig, supply: message_ix_models.tools.inter_pipe.TechConfig, scenario: message_ix_models.tools.inter_pipe.ScenarioConfig, spec: message_ix_models.tools.inter_pipe.SpecConfig)[source]
Bases:
object- __init__(first_model_year: int, pipe: TechConfig, supply: TechConfig, scenario: ScenarioConfig, spec: SpecConfig) None
Methods
__init__(first_model_year, pipe, supply, ...)from_file([path])Read configuration from file.
Attributes
TODO Document what this means, in contrast to \(y_0\) of the scenario itself.
The pipe technology is the technology that is used to transport the commodity from one node to another.
The pipe supply technology is the technology that feed commodity to the pipe technology.
scenariospec- first_model_year: int
TODO Document what this means, in contrast to \(y_0\) of the scenario itself.
- classmethod from_file(path: Path | str | None = None) Config[source]
Read configuration from file.
Some notes about the file format:
Two top-level keys called
pipe_techandpipe_supplytechcontain keys that have the same structure and names, except for different suffixes. For example,tech_mother_shorten_pipeappears underpipe_tech;tech_mother_shorten_supplyappears underpipe_supplytech. This function strips the suffixes so both can be stored as instances ofTechConfig.
- pipe: TechConfig
The pipe technology is the technology that is used to transport the commodity from one node to another.
- supply: TechConfig
The pipe supply technology is the technology that feed commodity to the pipe technology.