Import Ecoinvent#

Authors

This notebook was prepared in August 2023 by @michaelweinold.

Download

You can download this notebook here: import_ecoinvent.ipynb

Prerequisites

  1. Access to the ecoinvent database (username/password).

  2. A working installation of Brightway25.

# Brightway packages
import bw2io as bi
import bw2data as bd
# Brightway type hints
from bw2io import SingleOutputEcospold2Importer
# import/export
import os
bd.projects.set_current("import_ecoinvent")
if 'ecoinvent-3.9.1-cutoff' in bd.databases:
    print('ecoinvent 3.9.1 is already present in the project')
else:
    bi.import_ecoinvent_release(
        version='3.9.1',
        system_model='cutoff', # can be cutoff / apos / consequential / EN15804
        username='JohnDoe',
        password='1234'
    )