bw2io.importers.ecospold1#

Classes#

MultiOutputEcospold1Importer

Import and process multi-output datasets in the ecospold 1 format.

NoIntegerCodesEcospold1Importer

An importer class that deletes integer codes from ecospold1 datasets.

SingleOutputEcospold1Importer

Import and process single-output datasets in the ecospold 1 format.

Module Contents#

class bw2io.importers.ecospold1.MultiOutputEcospold1Importer(*args, **kwargs)[source]#

Bases: SingleOutputEcospold1Importer

Import and process multi-output datasets in the ecospold 1 format.

Works the same as the single-output importer, but first allocates multioutput datasets.

strategies[source]#

A list of strategies that the importer applies to process the dataset.

Type:

list

Return type:

None

Initialize MultiOutputEcospold1Importer.

Parameters:
  • *args (tuple) – Variable length argument list.

  • **kwargs (dict) – Arbitrary keyword arguments.

Return type:

None

class bw2io.importers.ecospold1.NoIntegerCodesEcospold1Importer(*args, **kwargs)[source]#

Bases: SingleOutputEcospold1Importer

An importer class that deletes integer codes from ecospold1 datasets.

Parameters:

SingleOutputEcospold1Importer (class) – The base importer class.

strategies[source]#

A list of strategies that the importer applies to process the dataset.

Type:

list

Return type:

None

Initialize NoIntegerCodesEcospold1Importer.

Parameters:
  • *args (tuple) – Variable length argument list.

  • **kwargs (dict) – Arbitrary keyword arguments.

Return type:

None

class bw2io.importers.ecospold1.SingleOutputEcospold1Importer(filepath, db_name, use_mp=True, extractor=Ecospold1DataExtractor)[source]#

Bases: bw2io.importers.base_lci.LCIImporter

Import and process single-output datasets in the ecospold 1 format.

Notes

Applies the following strategies: 1. If only one exchange is a production exchange, that is the reference product. 2. Delete (unreliable) integer codes from extracted data. 3. Drop unspecified subcategories from biosphere flows. 4. Normalize biosphere flow categories to ecoinvent 3.1 standard. 5. Normalize biosphere flow names to ecoinvent 3.1 standard. 6. Remove locations from biosphere exchanges. 7. Create a code from the activity hash of the dataset. 8. Link biosphere exchanges to the default biosphere database. 9. Link internal technosphere exchanges.

Parameters:
  • filepath (str or Path) – File or directory path.

  • db_name (str) – Name of database to create.

  • use_mp (bool, optional) – Whether to use multiprocessing. Default is True.

  • extractor (Type[Ecospold1DataExtractor], optional) – Data extractor to use. Default is Ecospold1DataExtractor.

db_name[source]#
format = 'Ecospold1'[source]#
strategies[source]#