bw2io.importers.ecospold2#

Classes#

SingleOutputEcospold2Importer

Class for importing single-output ecospold2 format LCI databases.

Module Contents#

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

Class for importing single-output ecospold2 format LCI databases.

Raises:

MultiprocessingError – If an error occurs during multiprocessing.

Initializes the SingleOutputEcospold2Importer class instance.

Parameters:
  • dirpath (str) – Path to the directory containing the ecospold2 file.

  • db_name (str) – Name of the LCI database.

  • biosphere_database_name (str | None) – Name of biosphere database to link to. Uses config.biosphere if not provided.

  • extractor (class) – Class for extracting data from the ecospold2 file, by default Ecospold2DataExtractor.

  • use_mp (bool) – Flag to indicate whether to use multiprocessing, by default True.

  • signal (object) – 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.

db_name[source]#
dirpath[source]#
format = 'Ecospold2'[source]#
signal[source]#
start[source]#
strategies[source]#