Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/polca/ScenarioLink
Browse files Browse the repository at this point in the history
  • Loading branch information
marc-vdm committed Sep 17, 2023
2 parents a694457 + a3809ab commit 04fecb2
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 2 deletions.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,16 @@ The Activity Browser builds upon the [Brightway2](https://brightway.dev) LCA fra

4. If the selected is not present in the local cache, it will be downloaded from the remote repository.
5. Once the download is complete, a second table presents the scenarios contained in the datapackage.

![Scenario Table](assets/scenario_table.png)

6. Select the desired scenario(s) by checking the corresponding checkboxes.
7. Choose whether to merge the selected scenarios into a single database (superstructure database) or reproduce them individually.
8. Click `Reproduce` to start the process.
8. Click `Import` to start the process.
9. The plugin will ask you to select the databases in your project that will be used as source databases.

![Source Database Selection](assets/source_database_selection.png)

10. The plugin will then reproduce the selected scenario(s) and add them to your project.

## Contributing
Expand Down
2 changes: 1 addition & 1 deletion ab_plugin_scenariolink/layouts/tabs/right.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def __init__(self):
self.layout.addWidget(self.radio_widget)

# Folds table
self.table_label = QtWidgets.QLabel('Doubleclick to open a Fold dataset (If not present locally, it will be downloaded)')
self.table_label = QtWidgets.QLabel('Doubleclick to open a datapackage (if not present locally, it will be downloaded -- this may take a while).')
self.layout.addWidget(self.table_label)

self.folds_table = FoldsTable(self)
Expand Down
1 change: 1 addition & 0 deletions ab_plugin_scenariolink/scenarios list/list.csv
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
generator;generator version;creation date;model;scenario;source database;Zenodo record ID
premise;1.6.8;2023-09-16;remind;SSP2-Base;ecoinvent 3.9 cutoff;"8351309"
premise;1.6.9;2023-09-17;remind;SSP2-Base;ecoinvent 3.9 cutoff;"8353132"
premise;1.6.9;2023-09-17;image;SSP2-Base;ecoinvent 3.9 cutoff;"8353213"
Binary file added assets/scenario_table.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/source_database_selection.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions dev/test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
from unfold import Unfold
import bw2data
bw2data.projects.set_current("ei39")

filepath="/Users/romain/Library/Caches/ActivityBrowser/8351309.zip"
dependencies={"ecoinvent": "ecoinvent 3.9.1 cutoff", "biosphere3": "biosphere3"}
scenarios=[0,]
superstructure=False

Unfold(filepath).unfold(
dependencies=dependencies,
scenarios=scenarios,
superstructure=superstructure,
)

0 comments on commit 04fecb2

Please sign in to comment.