message_ix_models.model.transport.factor.Keep
- class message_ix_models.model.transport.factor.Keep(**kwargs)[source]
Bases:
Omit
A layer that preserves values for 1 or more
labels
alongdim
.- __init__(**kwargs)
Methods
__init__
(**kwargs)apply
(other, coords)quantify()
this layer and combine it with other.operation
(b, /)Same as a ** b.
quantify
(coords)Return a quantification of the layer.
Attributes
Dimension along which to omit
labels
.Specific labels or coords to omit.
- apply(other: AttrSeries, coords: Mapping[str, Any]) AttrSeries
quantify()
this layer and combine it with other.Subclasses may override this method. The default implementation combines other with the results of
quantify()
usingoperation
.
- operation(b, /)
Same as a ** b.