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

bw2io.importers.ecospold1#

Module Contents#

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.

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

Bases: SingleOutputEcospold1Importer

Inheritance diagram of bw2io.importers.ecospold1.MultiOutputEcospold1Importer

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

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

Attributes#

strategieslist

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

Returns#

None

Initialize MultiOutputEcospold1Importer.

Parameters#

*argstuple

Variable length argument list.

**kwargsdict

Arbitrary keyword arguments.

Returns#

None

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

Bases: SingleOutputEcospold1Importer

Inheritance diagram of bw2io.importers.ecospold1.NoIntegerCodesEcospold1Importer

An importer class that deletes integer codes from ecospold1 datasets.

Parameters#

SingleOutputEcospold1Importerclass

The base importer class.

Attributes#

strategieslist

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

Returns#

None

Initialize NoIntegerCodesEcospold1Importer.

Parameters#

*argstuple

Variable length argument list.

**kwargsdict

Arbitrary keyword arguments.

Returns#

None

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

Bases: bw2io.importers.base_lci.LCIImporter

Inheritance diagram of bw2io.importers.ecospold1.SingleOutputEcospold1Importer

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.

format = 'Ecospold1'[source]#