message_ix_models.model.transport.util

Utility code for MESSAGEix-Transport.

Functions

has_input_commodity(technology, commodity)

Return True if technology has an ‘input’ annotation with commodity.

path_fallback(context_or_regions, *parts)

Return a Path constructed from parts.

sum_numeric(iterable, /[, start])

Sum only the numeric values in iterable.

wildcard(value, units, dims)

Return a Quantity with 1 label "*" along each of dims.