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

bw2io#

Subpackages#

Submodules#

Package Contents#

Classes#

BW2Package

This is a format for saving objects which implement the datastore API.

CSVImporter

Generic CSV importer

CSVLCIAImporter

Generic CSV LCIA importer.

ChemIDPlus

Use the ChemIDPlus API to lookup synonyms for chemicals, including pesticides.

DatabaseSelectionToGEXF

Export a Gephi graph for a selection of activities from a database.

DatabaseToGEXF

Export a Gephi graph for a database.

Ecospold1LCIAImporter

Importer for Ecospold1 LCIA format.

ExcelImporter

Generic Excel importer.

ExcelLCIAImporter

Generic Excel LCIA importer.

Exiobase3MonetaryImporter

Base class for format-specific importers.

Migration

A migration is a set of data that can be used to modify a database.

MultiOutputEcospold1Importer

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

SimaProCSVImporter

Base class for format-specific importers.

SimaProLCIACSVImporter

Importer for SimaPro CSV LCIA data format.

SingleOutputEcospold1Importer

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

SingleOutputEcospold2Importer

Class for importing single-output ecospold2 format LCI databases.

UnlinkedData

Functions#

activity_hash(data[, fields, case_insensitive])

Hash an activity dataset.

backup_data_directory([timestamp, dir_backup])

Backup the Brightway2 data directory to a .tar.gz (compressed tar archive) in a specified directory, or in the user's home directory by default.

backup_project_directory(project[, timestamp, dir_backup])

Backup project data directory to a .tar.gz (compressed tar archive) in the user's home directory, or a directory specified by dir_backup.

bw2setup()

create_core_migrations()

Add pre-defined core migrations data files.

create_default_biosphere3([overwrite])

create_default_lcia_methods([overwrite, ...])

es2_activity_hash(activity, flow)

Generate unique ID for ecoinvent3 dataset.

exiobase_monetary([version, year, products, name, ...])

import_ecoinvent_release(*args, **kwargs)

install_project(project_key[, project_name, ...])

Install an existing Brightway project archive.

lci_matrices_to_excel(database_name[, include_descendants])

Export LCI matrices to Excel.

lci_matrices_to_matlab(database_name)

Export LCI matrices to Matlab format.

load_json_data_file(filename)

restore_project_directory(fp[, project_name, ...])

Restore a backed up project data directory from a .tar.gz (compressed tar archive) specified by fp. Choose a custom name, or use the name of the project in the archive. If the project already exists, you must set overwrite_existing to True.

useeio20([name, collapse_products, prune])

Attributes#

migrations

normalize_units

unlinked_data

bw2io.bw2setup()[source]#
bw2io.create_default_biosphere3(overwrite=False)[source]#
bw2io.create_default_lcia_methods(overwrite=False, rationalize_method_names=False, shortcut=True)[source]#
bw2io.exiobase_monetary(version=(3, 8, 1), year=2017, products=False, name=None, ignore_small_balancing_corrections=True)[source]#
bw2io.import_ecoinvent_release(*args, **kwargs)[source]#
bw2io.useeio20(name='USEEIO-2.0', collapse_products=False, prune=False)[source]#