Closed marc-vdm closed 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.
Feature request
Current situation:
Managing biosphere versions in AB projects is currently not ideal. Creating a new project installs the most recent version of the biosphere, potentially losing compatibility with older versions. (e.g. #1137).
Biosphere import when project is started
https://github.com/LCA-ActivityBrowser/activity-browser/blob/fe69950ac930a9cdaed5271ff39be2849cbdc516/activity_browser/ui/widgets/dialog.py#L529-L532
Biosphere importer in Brightway
bw.create_default_biosphere3()
eventuallyEcospold2BiosphereImporter(name="biosphere3", version="3.9")
is calledUpdating Biosphere
bw2io.data
Proposal
What I propose is the following (explained more extensively in sections below):
3.4
-3.9.1
), we then use this file for:Downloading a specific version of biosphere
Should provide popup that allows user to choose ecoinvent-compatible version, sorted from highest to lowest Should provide information that biosphere databases are not always backwards compatible (e.g. ei 3.8 does not work on biosphere for ei 3.9) and that versions cannot be downgraded
TODO
bw.create_default_biosphere3()
with an AB version that can callEcospold2BiosphereImporter(name="biosphere3", version="3.9")
directly and call on chosen versionUpdating to specific version
Should provide popup that allows user to choose ecoinvent-compatible version, sorted from highest to lowest Should provide information that biosphere databases are not always backwards compatible (e.g. ei 3.8 does not work on biosphere for ei 3.9) and that versions cannot be downgraded
TODO
Show limited list of available ecoinvent versions for importing
Should limit the list of ecoinvent versions shown available for import
TODO
Host file online
Host a file on our github with a list per AB version about what ecoinvent versions are compatible
bw2io
comes available that is compatible with current version of AB, we don't need users to update AB, we just update the compatibility list online and it should workpatch
version of ecoinvent becomes available (e.g.3.9.1
, we can also just update the list, not requiring users to update AB2.11
and the online list has2.12
and2.10
available, we choose the first version where AB is higher than list version (in this case2.10
)TODO