bw_simapro_csv.brightway
Attributes
Functions
|
If allocation field is present, add it as manual property as well |
|
Take an edge on a node and generate a new product node. |
|
Turn an extracted SimaPro CSV extract into metadata that can be imported into Brightway. |
|
Try several ways to generate a sensible name. |
|
Add explicit link from process edge to new product node |
|
Module Contents
- bw_simapro_csv.brightway.allocation_as_manual_property(exc: dict) dict[source]
If allocation field is present, add it as manual property as well
- bw_simapro_csv.brightway.as_product_dct(edge: dict, node: dict) dict[source]
Take an edge on a node and generate a new product node.
- bw_simapro_csv.brightway.lci_to_brightway(spcsv: bw_simapro_csv.main.SimaProCSV, missing_string: str = '(unknown)', separate_products: bool = False, shorten_names: bool = True) dict[source]
Turn an extracted SimaPro CSV extract into metadata that can be imported into Brightway.
Doesn’t do any normalization or other data changes, just reorganizes the existing data.
- bw_simapro_csv.brightway.name_for_process(process: bw_simapro_csv.blocks.Process, missing_string: str, shorten_names: bool = True) str[source]
Try several ways to generate a sensible name.
- bw_simapro_csv.brightway.reference_to_product(process_edge: dict, product: dict) dict[source]
Add explicit link from process edge to new product node
- bw_simapro_csv.brightway.AVOIDED_PRODUCTS_WARNING = Multiline-String[source]
Show Value
"""Processing avoided products block. Please check exchanges with type `substitution` carefully - we don't have data to test this."""
- bw_simapro_csv.brightway.BIOSPHERE_EDGES = ('Economic issues', 'Emissions to air', 'Emissions to soil', 'Emissions to water', 'Final waste...[source]
- bw_simapro_csv.brightway.OPTIONAL_PROCESS_FIELDS = [('Comment', 'comment'), ('Generator', 'data_generator'), ('Record', 'data_entry'), ('External...[source]