Import Ecoinvent#
Download
You can download this notebook here: import_ecoinvent.ipynb
Prerequisites
Access to the ecoinvent database (username/password).
# 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'
)