message_ix_models.tests.model.test_workflow.CL_SCENARIO_TEST

class message_ix_models.tests.model.test_workflow.CL_SCENARIO_TEST[source]

Bases: StructureFactory

A scenario code list for testing.

__init__()[source]

Methods

__init__()

create()

Create and return the artefact.

get(*[, force])

Retrieve the artefact, possibly from file.

maintainable(_type)

Shorthand to create an empty MaintainableArtefact.

Attributes

base_url

urn

Partial URN for the artefact that is returned, excluding the version.

version

Version.

classmethod create() Codelist[source]

Create and return the artefact.

classmethod get(*, force: bool = False) MaintainableT[source]

Retrieve the artefact, possibly from file.

The highest version of the artefact with urn is loaded using from file using read().

If the artefact from file has a version that does not match version or if force=True, create() is called to regenerate a complete and up-to-date version of the artefact as of version. This updated version is stored using write().

classmethod maintainable(_type: type[MaintainableT]) MaintainableT[source]

Shorthand to create an empty MaintainableArtefact.

  • urn is parsed for a maintainer and artefact ID.

  • version is used.

  • A new instance of _type is created and returned.

urn: str = 'IIASA_ECE:CL_SCENARIO_TEST'[source]

Partial URN for the artefact that is returned, excluding the version.

version: str = '1.0.0'[source]

Version.