REGISTER NOW: DdS Autumn School! 🇨🇭 Grosshöchstetten (Switzerland) 🗓️ 6.-11. October 2024

bw2io.importers.ecospold2#

Module Contents#

Classes#

SingleOutputEcospold2Importer

Class for importing single-output ecospold2 format LCI databases.

class bw2io.importers.ecospold2.SingleOutputEcospold2Importer(dirpath: str, db_name: str, biosphere_database_name: str | None = None, extractor: Any = Ecospold2DataExtractor, use_mp: bool = True, signal: Any = None, reparametrize_lognormals: bool = False)[source]#

Bases: bw2io.importers.base_lci.LCIImporter

Inheritance diagram of bw2io.importers.ecospold2.SingleOutputEcospold2Importer

Class for importing single-output ecospold2 format LCI databases.

Raises#

MultiprocessingError

If an error occurs during multiprocessing.

Initializes the SingleOutputEcospold2Importer class instance.

Parameters#

dirpathstr

Path to the directory containing the ecospold2 file.

db_namestr

Name of the LCI database.

biosphere_database_namestr | None

Name of biosphere database to link to. Uses config.biosphere if not provided.

extractorclass

Class for extracting data from the ecospold2 file, by default Ecospold2DataExtractor.

use_mpbool

Flag to indicate whether to use multiprocessing, by default True.

signalobject

Object to indicate the status of the import process, by default None.

reparametrize_lognormals: bool

Flag to indicate if lognormal distributions for exchanges should be reparametrized such that the mean value of the resulting distribution meets the amount defined for the exchange.

format = 'Ecospold2'[source]#