bw2io.extractors.ecospold1_lcia
#
Module Contents#
Classes#
Extract impact assessment methods and weightings data from ecospold XML format. |
Functions#
|
- class bw2io.extractors.ecospold1_lcia.Ecospold1LCIAExtractor[source]#
Bases:
object
Extract impact assessment methods and weightings data from ecospold XML format.
- None#
- parse_cf()[source]#
Parses an ecospold XML data element to extract characterization factor information.
- classmethod extract(path)[source]#
Extracts ecospold XML file data.
- Parameters
path (str) – The path to the ecospold XML file or directory.
- Returns
A list of dictionaries with the extracted information.
- Return type
list
- classmethod parse_cf(cf)[source]#
Parse a cf object and extract relevant data.
- Parameters
cf (dict) – A dictionary of cf data.
- Returns
A dictionary of parsed cf data.
- Return type
dict
- Raises
TypeError – If ‘cf’ is not a dictionary.
Notes
This method expects ‘cf’ to contain the following keys: - meanValue (float): the amount - category (str): the category - subCategory (str, optional): the subcategory, if any - name (str): the name - unit (str): the unit of the amount
If subCategory is not provided, it will default to None.