message_ix_models.model.transport.factor.Factor
- class message_ix_models.model.transport.factor.Factor(layers: list[~message_ix_models.model.transport.factor.Layer] = <factory>)[source]
Bases:
objectRepresentation of assumptions used to construct a factor.
The assumptions are stored as a sequence of
layers, and combined one by one to produce a multi-dimensionalQuantity.Factor quantifications can be used in multiplicative, additive, or in other, possibly more complicated ways.
Methods
__init__([layers])add_tasks(c, key, *inputs, scenario_expr)Add a task to c to return the quantified Factor.
quantify(**coords)Return a quantification.
Attributes
Ordered list of
Layer.- add_tasks(c: Computer, key: genno.core.key.KeyLike, *inputs: genno.Key, scenario_expr: str) genno.core.key.KeyLike[source]
Add a task to c to return the quantified Factor.
- quantify(**coords) AttrSeries[source]
Return a quantification.
The result will have at least the dimensions and labels in coords, and may may have additional dimensions not from coords.
- Parameters:
coords – Target
xarray-style coords: dimension IDs mapped to lists of labels.