Closed tfardet closed 1 year ago
Apparently the import did not work properly...
For instance the market for electricity, medium voltage' (kilowatt hour, FR, None)
entry (code 16f2487031310001380a0524ee7bb120
) has only one exchange with itself and therefore does not appear in the LCA characterized inventory, leading to incorrect results.
I tried again with is_biosphere = True
but that led to invalid exchanges and I could not write the database.
EDIT: I also tried if ("parameter" not in exc.tag and "impactIndicator" not in exc.tag)
on line 306, this makes things very fast and suppresses the RAM explosion but it does not lead to a valid database (market electricity is still lacking the relevant flows)
Associated issue raised in ActivityBrowser: https://github.com/LCA-ActivityBrowser/activity-browser/issues/247
Figure it out: the file that needs to be used is ecoinvent 3.9_cutoff_ecoSpold02.7z
and not the _lci(a)
variant, these are not supported.
On Linux, with python 3.10, importing
ecoinvent_39_cutoff_lcia_ecoSpold02/datasets
(fromecoinvent 3.9_cutoff_lcia_ecoSpold02.7z
) fails withValueError
with all versions of bw2io >= 0.8.8 (I did not test older versions).The error is due to the fact that there is an unrecognized entry tags
{http://www.EcoInvent.org/EcoSpold02}impactIndicator
that leads to theValueError
in ecospold2.py.I "fixed" it by adding
but:
use_mp=False
in a Jupyter notebookShould I just ignore these entries instead? I'm not sure why they are here since they don't seem to be supported and my colleagues running Windows do not seem to encounter that issue with the same bw/bw2io versions... (and the same EcoInvent database, obviously).