Skip to content

Latest commit

 

History

History
221 lines (162 loc) · 11.7 KB

README.md

File metadata and controls

221 lines (162 loc) · 11.7 KB

Anaconda-Server Badge Anaconda-Server Badge linux apple windows Pull request tests Coverage Status

Activity Browser - a GUI for Brightway2

The activity browser is an open source software for Life Cycle Assessment (LCA) that builds on top of the Brightway2 LCA framework.

Highlights

  • Fast LCA calculations for multiple reference flows and impact categories using Brightway2 under the hood
  • The AB can be used as a productivity tool for brightway: you can model in brightway (python) and see the results in the AB or the other way around - whatever is most convenient for you
  • Advanced LCA modeling:
    • parametrization
    • advanced foreground and background scenario modeling (e.g. possibility to work with scenarios from Integrated Assessment Models)
    • generate and load presamples data
    • define and directly visualize the uncertainties of your input data (including Pedigree Matrix)
  • Advanced analysis of LCA results:
    • Contribution analyses (including aggregation by product name, region or other attributes)
    • Sankey Diagrams
    • Monte Carlo Analysis (building upon the fast brightway engine)
    • Global Sensitivity Analysis
  • Other features
    • interactively explore supply chains using the graph explorer

Scientific paper

Please have a look at our scientific paper on the Activity Browser and cite it in your work if it has been useful to you: https://doi.org/10.1016/j.simpa.2019.100012

Youtube tutorials

Watch our videos on youtube to learn how to install and use the Activity Browser.

Contents

Quickstart

You can install and start the activity-browser like this:

conda create -n ab -c conda-forge -c cmutel -c bsteubing -c haasad -c pascallesage activity-browser
conda activate ab
activity-browser

Installation

Conda

We recommend that you use conda to manage your python installation. You can install Anaconda or the more compact miniconda (Python 3 of course) for your operating system. Installation instructions for miniconda can be found here. See also the conda user guide or the Conda cheat sheet.

Skip this step if you already have a working installation of anaconda or miniconda, but make sure to keep your conda installation up-to-date: conda update conda.

Configure conda channels

The activity-browser has many dependencies and you need to add five conda channels to your configuration file so conda can find all of them. Open a cmd-window or terminal (in Windows you may have to use the Anaconda prompt) and type the following (order is important):

conda config --prepend channels conda-forge
conda config --append channels cmutel
conda config --append channels bsteubing
conda config --append channels haasad
conda config --append channels pascallesage

You can check your channels with conda config --show channels. The output should look like this if everything is set up correctly:

channels:
  - conda-forge
  - defaults
  - cmutel
  - bsteubing
  - haasad
  - pascallesage

You can also edit your user's .condarc file and modify the channels there. If you prefer to not add these channels to your conda config permanently, you'll have to always explicitly list them for conda install and conda update commands (see example in Quickstart).

Install the activity browser

After configuring your conda channels, the activity browser can be installed with this command:

conda create -n ab activity-browser

This will install the activity-browser and all of its dependencies in a new conda environment called ab. You can change the environment name ab to whatever suits you. Installing for the first time will take a few minutes.

It is recommended that you have a separate conda environment for the activity browser like explained above, but you can also install the activity browser in your root, brightway2 or other existing conda environment if you prefer. Having separate environments for different projects generally reduces unwanted side-effects and incompatibilities between packages. You can still access the same brightway-projects even if you work with different conda environments.

Updating the activity browser

You may want to update the activity browser to receive new features & bugfixes:

conda activate ab
conda update activity-browser

This will update the activity-browser and all of its dependencies in the conda environment called ab.

⚠️ The activity browser has dropped support for python versions below 3.8
You should re-install if you have an older installation of the activity browser which doesn't use python >= 3.8 (you can check with conda list or python --version in your conda environment). You can remove your existing environment with conda remove -n ab --all or choose a new environment name (instead of ab). Re-installing will not affect your activity-browser/brightway projects.

Development Version

Anaconda-Server Badge Anaconda-Server Badge

The most recent version of the master branch is automatically uploaded to anaconda as the activity-browser-dev package and generally available via conda ~5 minutes after being committed. Installation is the same as for the stable releases of the activity browser. It is highly advisable to not install the development version in the same conda environment as the stable release (the command activity-browser will always start the most recently installed version in a given environment).

Install the development version like this:

conda create -n ab_dev activity-browser-dev

Or update like this if you already have a dev environment:

conda activate ab_dev
conda update activity-browser-dev

Getting started

Watch our videos on youtube on how to install and use the Activity Browser and/or read below and in our Wiki.

Running the activity browser

First activate the environment where the activity browser is installed:

conda activate ab

Then simply run activity-browser and the application will open.

Importing an LCI database

  • In the inventory-tab there is a button called "Add default data (biosphere flows and impact categories)". Click this button to add the default data. This is equivalent to brightway2.bw2setup() in python.
  • After adding the default data, you can import a database with the "Import Database"-Button. Follow the instructions of the database import wizard. There are currently three types of imports possible:
    • Directly from the ecoinvent homepage (ecoinvent login credentials required)
    • From a 7zip archive
    • From a directory with ecospold2 files (same as in brightway2)

Contributing

Your contribution counts! The AB is a community project.

If you have ideas for improvements to the code or documentation or want to propose new features, please take a look at our contributing guidelines and open issues and/or pull-requests.

If you experience problems or are suffering from a specific bug, please raise an issue here on github.

Authors

Contributing projects

The development of the Activity Browser was co-financed by the following projects:

  • Life Cycle Management of wood in Switzerland (Swiss National Science Foundation, NRP 66 Resource Wood project number 136623)
  • MIN-TEA (Materials Innovative Technologies Assessment; EIT Raw Materials project number 18231)

Copyright

  • 2017-2020: Bernhard Steubing and Daniel de Koning (Leiden University), Adrian Haas (ETH Zurich)
  • 2016: Chris Mutel and Paul Scherrer Institut
  • 2015: Bernhard Steubing and ETH Zurich

License

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Additional Resources

Activity Browser:

Brightway2: