Skip to content

Commit

Permalink
Fixing files zipping.
Browse files Browse the repository at this point in the history
  • Loading branch information
romainsacchi committed Sep 17, 2023
1 parent 8112118 commit e12f3f0
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 2 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,12 @@ 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.
10. The plugin will then reproduce the selected scenario(s) and add them to your project.

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
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.
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 e12f3f0

Please sign in to comment.