message_ix_models.tools.iea.web.TRANSFORM

class message_ix_models.tools.iea.web.TRANSFORM(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: Flag

Flags for optional transformations of IEA EWEB data.

__init__(*args, **kwds)

Methods

from_value([value])

Return a member of the enumeration given a name, int, or None.

is_valid(*[, fail])

Check whether a particular set of flags is value.

Attributes

A

Aggregate using "n::groups"—the same as ExoDataSource.transform().

B

C

Derive additional "flow" labels using transform_C().

DEFAULT

A = 1

Aggregate using “n::groups”—the same as ExoDataSource.transform(). This operates on the n labels transformed to alpha-3 codes by step (1) above.

Mutually exclusive with B.

B = 2

Mutually exclusive with A.

C = 4

Derive additional “flow” labels using transform_C().

classmethod from_value(value: str | int | TRANSFORM | None = None) TRANSFORM[source]

Return a member of the enumeration given a name, int, or None.

is_valid() is called on the result.

is_valid(*, fail: Literal['log', 'raise'] = 'raise') bool[source]

Check whether a particular set of flags is value.