message_ix_models.model.transport.operator.extend_y
- message_ix_models.model.transport.operator.extend_y(qty: AnyQuantity, y: List[int], *, dim: str = 'y') AnyQuantity [source]
Extend qty along the dimension dim to cover all of y.
Values are first filled forward, then backwards, within existing dim labels in qty.
Labels in y that are not in qty are filled using the first or last existing value.