bw2io.importers.ecospold2_biosphere#

Attributes#

Classes#

Ecospold2BiosphereImporter

Import elementary flows from ecoinvent xml format.

Module Contents#

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

Import elementary flows from ecoinvent xml format.

format[source]#

Format of the data: “Ecoinvent XML”.

Type:

str

db_name[source]#

Name of the database.

Type:

str

data[source]#

Extracted data from the xml file.

Type:

list

strategies[source]#

List of functions to apply to the extracted data.

Type:

list

See also

https

//github.com/brightway-lca/brightway2-io/tree/main/bw2io/strategies

Initialize the importer.

Parameters:
  • name (str, optional) – Name of the database, by default “biosphere3”.

  • version (str, optional) – Version of the database, by default “3.9”.

extract(version: str | None = None, filepath: pathlib.Path | None = 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:

Extracted data from the xml file.

Return type:

list

data[source]#
db_name = 'biosphere3'[source]#
format = 'Ecoinvent XML'[source]#
strategies[source]#
bw2io.importers.ecospold2_biosphere.EMISSIONS_CATEGORIES[source]#