Package: ab-plugin-scenariolink
# ScenarioLink: An Activity Browser Plugin for Scenario-Based LCA DatabasesScenarioLink is a specialized plugin for the [Activity Browser](https://github.com/LCA-ActivityBrowser/activity-browser), an open-source software for Life Cycle Assessment (LCA). This plugin enables you to seamlessly fetch and reproduce scenario-based LCA databases, such as those generated by [premise](https://github.com/polca/premise), using [unfold](https://github.com/polca/unfold) datapackages.## FeaturesReproduce individual or multiple scenario-based databases within Activity Browser.Merge multiple databases into a unified superstructure database containing various scenarios.Leverage the capabilities of theunfoldlibrary to recreate databases with the necessary scaling factors.## OverviewThe Activity Browser builds upon the [Brightway2](https://brightway.dev) LCA framework. ScenarioLink aims to simplify the use of scenario-based LCA databases within the Activity Browser by:Eliminating the need for separate tools required to generate these databases (e.g., premise).Utilizingunfolddatapackages that contain scaling factors essential for reproducing scenario-based LCA databases, assuming a consistent source database (e.g., ecoinvent 3.7.1).![Flow Diagram](assets/flow_diagram.png)## InstallationActivate your existing Activity Browser conda environment.Install the ScenarioLink plugin using Pypi or conda:`bash pip installab-plugin-scenariolink``bash conda install-cromainsacchiab-plugin-scenariolink`Launch the Activity Browser.Navigate toTools > Pluginsand select ScenarioLink from the plugin list.## Usage### Reproduce a scenario-based databaseActivate the plugin by selecting it from the plugin list.![Plugin List](assets/plugin_list.png)After activating the plugin, select theScenarioLinktab.![ScenarioLink Tab](assets/scenariolink_tab.png)Select (double-click) the desired datapackage from the table.![Datapackage Table](assets/datapackage_table.png)If the datapackage selected is not present in the local cache, it will be downloaded from the remote repository.Once the download is complete, a second table presents the scenarios contained in the datapackage.![Scenario Table](assets/scenario_table.png)Select the desired scenario(s) by checking the corresponding checkboxes.Choose whether to merge the selected scenarios into a single database (superstructure database) or reproduce them individually.ClickImportto start the process.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)The plugin will then reproduce the selected scenario(s) and add them to your project.## ContributingYou can make your own scenario-based LCA databases available to the community.
To do so, you need to create aunfolddatapackage and upload it to a remote repository.
We will then add it to the list of available datapackages in the ScenarioLink plugin.## MaintainersFor questions, issues, or contributions, you can reach out to:Marc van der Meide: [Email](mailto:m.t.van.der.meide@cml.leidenuniv.nl)Romain Sacchi: [Email](mailto:romain.sacchi@psi.ch)Alternatively, you can open an issue on this GitHub repository.