bw_simapro_csv.brightway

Attributes

AVOIDED_PRODUCTS_WARNING

BIOSPHERE_EDGES

OPTIONAL_PROCESS_FIELDS

OPTIONAL_TAG_MAPPING

TECHNOSPHERE_EDGES

Functions

allocation_as_manual_property(→ dict)

If allocation field is present, add it as manual property as well

as_product_dct(→ dict)

Take an edge on a node and generate a new product node.

lci_to_brightway(→ dict)

Turn an extracted SimaPro CSV extract into metadata that can be imported into Brightway.

name_for_process(→ str)

Try several ways to generate a sensible name.

reference_to_product(→ dict)

Add explicit link from process edge to new product node

substitute_unspecified(→ Union[str, None])

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.substitute_unspecified(s: str | None) str | None[source]
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]
bw_simapro_csv.brightway.OPTIONAL_TAG_MAPPING = [('Type', 'simapro_type'), ('Time period', 'time_period'), ('Technology', 'technology'),...[source]
bw_simapro_csv.brightway.TECHNOSPHERE_EDGES = ('Materials/fuels', 'Electricity/heat')[source]