bw2io.extractors.simapro_csv
#
Module Contents#
Classes#
Functions#
|
Replace all occurrences of elements of |
|
Attributes#
- exception bw2io.extractors.simapro_csv.EndOfDatasets[source]#
Bases:
Exception
Common base class for all non-exit exceptions.
Initialize self. See help(type(self)) for accurate signature.
- class bw2io.extractors.simapro_csv.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.
- bw2io.extractors.simapro_csv.replace_with_lowercase(string, names)[source]#
Replace all occurrences of elements of
names
instring
with their lowercase equivalents.names
is a list of variable name strings that should already all be lowercase.Returns a modified
string
.
- bw2io.extractors.simapro_csv.INTRODUCTION = Multiline-String[source]#
Show Value
"""Starting SimaPro import: Filepath: %s Delimiter: %s Name: %s """