bw2io.extractors#
Submodules#
Classes#
Extract impact assessment methods and weightings data from ecospold XML format. |
|
Package Contents#
- class bw2io.extractors.Ecospold1DataExtractor[source]#
Bases:
object- classmethod process_exchange(exc, dataset)[source]#
Process exchange.
Input groups are:
Materials/fuels
Electricity/Heat
Services
FromNature
FromTechnosphere
Output groups are:
Reference product
Include avoided product system
Allocated byproduct
Waste to treatment
ToNature
A single-output process will have one output group 0; A MO process will have multiple output group 2s. Output groups 1 and 3 are not used in ecoinvent.
- class bw2io.extractors.Ecospold1LCIAExtractor[source]#
Bases:
objectExtract impact assessment methods and weightings data from ecospold XML format.
- class bw2io.extractors.Ecospold2DataExtractor[source]#
Bases:
object- classmethod extract_exchange(exc)[source]#
Process exchange.
Input groups are:
Materials/fuels
Electricity/Heat
Services
From environment (elementary exchange only)
FromTechnosphere
Output groups are:
0. ReferenceProduct 2. By-product 3. MaterialForTreatment 4. To environment (elementary exchange only) 5. Stock addition
- class bw2io.extractors.SimaProCSVExtractor[source]#
Bases:
object- classmethod parse_biosphere_flow(line, category, pm)[source]#
Parse biosphere flow line.
name
subcategory
unit
value or formula
uncertainty type
uncert. param.
uncert. param.
uncert. param.
comment
However, sometimes the value is in index 2, and the unit in index 3. Because why not! We assume default ordering unless we find a number in index 2.
- classmethod parse_calculated_parameter(line, pm)[source]#
Parse line in Calculated parameters section.
name
formula
comment
Can include multiline comment in TSV.
- classmethod parse_final_waste_flow(line, pm)[source]#
Parse final wate flow line.
0: name 1: subcategory? 2: unit 3. value or formula 4. uncertainty type 5. uncert. param. 6. uncert. param. 7. uncert. param.
However, sometimes the value is in index 2, and the unit in index 3. Because why not! We assume default ordering unless we find a number in index 2.
- classmethod parse_input_line(line, category, pm)[source]#
Parse technosphere input line.
name
unit
value or formula
uncertainty type
uncert. param.
uncert. param.
uncert. param.
comment
However, sometimes the value is in index 1, and the unit in index 2. Because why not! We assume default ordering unless we find a number in index 1.
- classmethod parse_input_parameter(line)[source]#
Parse line in Input parameters section.
name
value (not formula)
uncertainty type
uncert. param.
uncert. param.
uncert. param.
hidden (“Yes” or “No” - we ignore)
comment
- classmethod parse_reference_product(line, pm)[source]#
Parse reference product line.
name
unit
value or formula
allocation
waste type
category (separated by )
comment
However, sometimes the value is in index 1, and the unit in index 2. Because why not! We assume default ordering unless we find a number in index 1.