message_ix_models.model.transport.workflow.base_scenario_url

message_ix_models.model.transport.workflow.base_scenario_url(context: message_ix_models.Context, method: Literal['auto', 'bare'] = 'bare') str[source]

Identify the base MESSAGEix-GLOBIOM scenario.

If scenario_info is set on context (for instance, provided via the --url CLI option), nothing is done, and the URL corresponding to that scenario is returned.

If not, then the behaviour depends on method:

method = "auto"

Automatically identify the base scenario URL from the contents of base-scenario-url.json. The settings .Config.ssp and Config.policy are used to match an entry in the file.

method = "bare"

Construct bare RES scenario using model.bare.create_res and the settings on context such as Config.regions. Return the URL to this scenario.