LCA-ActivityBrowser / activity-browser

GUI for brightway2
GNU Lesser General Public License v3.0
134 stars 50 forks source link

Better biosphere install/update handling #1145

Closed marc-vdm closed 6 months ago

marc-vdm commented 7 months ago

Feature

  1. When user starts a new project, user can now choose which version of ecoinvent the biosphere database should be compatible with:
    • image
    • If the newest Major/Minor (e.g. 3.9) is chosen, biosphere is installed from bw2io
    • If an older version is chosen (e.g. 3.7), AB installs a legacy version of biosphere and applies patches (if needed) to update to the version requested.
  2. When user chooses to update biosphere, the same popup as above is shown, allowing user to choose to what version to update. Note that downgrading to older versions is not supported.
    • image
  3. When user installs an ecoinvent version from online, user can only choose versions explicitly supported by AB
    • image
  4. AB now has a list with explicit support for ecoinvent versions per AB version.
    • Users will not be able to see newer versions that are not supported
    • The file is stored online, with local fallback
    • If ecoinvent would release a new version of ecoinvent (e.g. a patch version), only the online file needs to be updated, users wouldn't need to update AB.
    • Local fallback still allows updating biosphere to work without internet connection
  5. AB now stores legacy versions of biosphere for ecoinvent 3.4, 3.5 and 3.6 locally (~1MB compressed size in total), for 3.7 and 3.8 AB will install 3.6 and apply patch updates from bw2io to the correct version.

Implementation of #1142, but will also partly help (though not entirely resolve) #1137

Checklist

coveralls commented 7 months ago

Coverage Status

coverage: 50.424% (+0.4%) from 50.055% when pulling a03cb718bf498d021f05bee4de2ab47daacab320 on marc-vdm:better_biosphere_handling into d5b9e75a56355f7ca9f90898de7d7908f7d28344 on LCA-ActivityBrowser:master.

github-actions[bot] commented 6 months ago

This issue has been implemented in the new release of Activity Browser 🚀 (version 2.9.3), you can get the new version by updating Activity Browser.

🤖beep boop! I'm a bot and this message was an automated action. If updating does not make sense for this issue, just ignore this.