characterizations
Characterizations are one of the two forms of quantitative information in LCA. A characterization relates two different quantities of measurement (known as a reference quantity and a query quantity) for one particular flowable substance, in a specific environmental context and geographic locale.
A QRResult is a namedtuple that documents the result of a "quantity relation" calculation- it reports: - the flowable - the reference quantity - the query quantity - the context / compartment - the locale - the origin of the characterization data - the value of the characterization
Characterization
Bases: object
A characterization is an affiliation of a flow and a quantity. Characterizations are inherently naively spatialized, with factors stored in a dict of locations, and the 'GLO' location being used as the default.
Note: the !only! place a Characterization is created is in TermManager.add_characterization()
__eq__(other)
returns True if the hash elements are all the same
This is clearly broken
Returns true if all of other's location-specific values equal self's values for the same location
Parameters:
Name | Type | Description | Default |
---|---|---|---|
other |
|
required |
Returns:
Type | Description |
---|---|
|
__init__(flow_name, ref_quantity, query_quantity, context, origin=None, **kwargs)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
flow_name |
a canonical string |
required | |
quantity |
|
required | |
value |
passed to add_value if present |
required | |
location |
'GLO' passed to add_value if present |
required | |
origin |
of data, if applicable |
None
|
Returns:
Type | Description |
---|---|
|
serialize(values=False, concise=False)
The "concise" option is used within term manager when query quantity, context, and flowable are already serialized
Parameters:
Name | Type | Description | Default |
---|---|---|---|
values |
|
False
|
|
concise |
|
False
|
Returns:
Type | Description |
---|---|
|
LocaleMismatch
Bases: Exception
Requested locale is not found
MissingContext
Bases: Exception
context cannot be None
MissingReference
Bases: Exception
A flow must have a reference quantity to be characterized