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

bw2io.importers.ecospold2_biosphere#

Module Contents#

Classes#

Ecospold2BiosphereImporter

Import elementary flows from ecoinvent xml format.

Attributes#

EMISSIONS_CATEGORIES

class bw2io.importers.ecospold2_biosphere.Ecospold2BiosphereImporter(name: str = 'biosphere3', version: str = '3.9', filepath: pathlib.Path | None = None)[source]#

Bases: bw2io.importers.base_lci.LCIImporter

Inheritance diagram of bw2io.importers.ecospold2_biosphere.Ecospold2BiosphereImporter

Import elementary flows from ecoinvent xml format.

Attributes#

formatstr

Format of the data: “Ecoinvent XML”.

db_namestr

Name of the database.

datalist

Extracted data from the xml file.

strategieslist

List of functions to apply to the extracted data.

See Also#

brightway-lca/brightway2-io

Initialize the importer.

Parameters#

namestr, optional

Name of the database, by default “biosphere3”.

versionstr, optional

Version of the database, by default “3.9”.

format = 'Ecoinvent XML'[source]#
extract(version: str | None, filepath: pathlib.Path | None)[source]#

Extract elementary flows from the xml file.

Parameters#
version

Version of the database if using default data.

filepath

File path of user-specified data file

Returns#
list

Extracted data from the xml file.

bw2io.importers.ecospold2_biosphere.EMISSIONS_CATEGORIES[source]#