Skip to content

quantity_manager

QuantityManager

Bases: SynonymDict

add_quantity(quantity)

Prunes terms on quantity unit mismatch

Parameters:

Name Type Description Default
quantity
required

Returns:

Type Description

QuantitySynonyms

Bases: SynonymSet

QuantitySynonyms are string terms that all refer to the same quantity of measure. They must all have the same unit, because they are used to define the unit of measure of flowables. To repeat: quantity instances that have the same dimensionality but different units (e.g. kWh and MJ) are NOT SYNONYMS but distinct quantities. The LciaEngine should be able to handle conversions between these kinds of quantities.