bw_simapro_csv.brightway ======================== .. py:module:: bw_simapro_csv.brightway Attributes ---------- .. autoapisummary:: bw_simapro_csv.brightway.AVOIDED_PRODUCTS_WARNING bw_simapro_csv.brightway.BIOSPHERE_EDGES bw_simapro_csv.brightway.OPTIONAL_PROCESS_FIELDS bw_simapro_csv.brightway.OPTIONAL_TAG_MAPPING bw_simapro_csv.brightway.TECHNOSPHERE_EDGES Functions --------- .. autoapisummary:: bw_simapro_csv.brightway.allocation_as_manual_property bw_simapro_csv.brightway.as_product_dct bw_simapro_csv.brightway.lci_to_brightway bw_simapro_csv.brightway.name_for_process bw_simapro_csv.brightway.reference_to_product bw_simapro_csv.brightway.substitute_unspecified Module Contents --------------- .. py:function:: allocation_as_manual_property(exc: dict) -> dict If allocation field is present, add it as manual property as well .. py:function:: as_product_dct(edge: dict, node: dict) -> dict Take an edge on a node and generate a new product node. .. py:function:: lci_to_brightway(spcsv: bw_simapro_csv.main.SimaProCSV, missing_string: str = '(unknown)', separate_products: bool = False, shorten_names: bool = True) -> dict 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. .. py:function:: name_for_process(process: bw_simapro_csv.blocks.Process, missing_string: str, shorten_names: bool = True) -> str Try several ways to generate a sensible name. .. py:function:: reference_to_product(process_edge: dict, product: dict) -> dict Add explicit link from process edge to new product node .. py:function:: substitute_unspecified(s: Union[str, None]) -> Union[str, None] .. py:data:: AVOIDED_PRODUCTS_WARNING :value: Multiline-String .. raw:: html
Show Value .. code-block:: python """Processing avoided products block. Please check exchanges with type `substitution` carefully - we don't have data to test this.""" .. raw:: html
.. py:data:: BIOSPHERE_EDGES :value: ('Economic issues', 'Emissions to air', 'Emissions to soil', 'Emissions to water', 'Final waste... .. py:data:: OPTIONAL_PROCESS_FIELDS :value: [('Comment', 'comment'), ('Generator', 'data_generator'), ('Record', 'data_entry'), ('External... .. py:data:: OPTIONAL_TAG_MAPPING :value: [('Type', 'simapro_type'), ('Time period', 'time_period'), ('Technology', 'technology'),... .. py:data:: TECHNOSPHERE_EDGES :value: ('Materials/fuels', 'Electricity/heat')