bw2io.importers.simapro_block_csv#
Classes#
Module Contents#
- class bw2io.importers.simapro_block_csv.SimaProBlockCSVImporter(path_or_stream: pathlib.Path | io.StringIO, database_name: str | None = None, biosphere_database_name: str | None = None, separate_products: bool = True, shorten_names: bool = True)[source]#
Bases:
bw2io.importers.base_lci.LCIImporter
- create_regionalized_biosphere_proxies(database_name: str) None [source]#
Create proxy nodes for regionalized biosphere flows in a separate database.
In Brightway, regionalized biosphere flows get their locations from the processes which produce them. In other systems, this isn’t always the case. For example, in SimaPro, you can have a flow like “Water, Europe”.
This method aligns data imports with the Brightway ontology by getting or creating a new proxy process for “Water”, taking place in “Europe”, in the database “database_name”. This process has a unitary production exchange, and a biosphere edge to an actual “Water” flow.
This method assumes you have already found and linked a suitable biosphere flow - we need this during proxy node creation.
database_name
is the database to store the proxies; it can already exist. It will use existing proxy nodes if possible.
- create_technosphere_placeholders(database_name: str)[source]#
Create new placeholder database from unlinked technosphere flows in
self.data
- use_ecoinvent_strategies() None [source]#
Switch strategy selection to normalize data to ecoinvent flow lists