FAIL: import BAFU db using brightway
I tried to import the ecospold01 file version of the BAFU database. We can find the files in openlca nexus.
I followed the bw2io documentation, and the openlca ecospold01 file import example ➡️ no success ❌.
Some of you made it?
Here is my attempt:
import bw2data as bd
import bw2io
project_name = "your_project"
bd.projects.set_current(project_name)
from bw2io.importers.ecospold1 import SingleOutputEcospold1Importer
importer = SingleOutputEcospold1Importer(
"C:/my_path/LCI-ecospoldv1-files",
"BAFU-2025",
use_mp=False
)
importer.apply_strategies()
importer.statistics()
importer.write_database()