bw2io.importers.ecospold1#
Classes#
Import and process multi-output datasets in the ecospold 1 format. |
|
An importer class that deletes integer codes from ecospold1 datasets. |
|
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 acode
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.