bw2io.extractors.ecospold1_lcia#
Classes#
Extract impact assessment methods and weightings data from ecospold XML format. |
Module Contents#
- 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, **kwargs)[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.