This dashboard attempts to combine the motivation behind Global Sensitivity Analysis of Life Cycle Assessment, with necessary computations and visualization of the results - all in one place.
The dashboard has been implemented with Dash - framework for building data apps that was written on top of Plotly.js and React.js. Non enterprise version of Dash has the MIT license.
Note that the app is not well tested, but it does work on the example Brightway project "Uncertainties Chaerhan" that you can import using dev/import_chaerhan.py
Video submitted for the Depart de Sentier visualization contest.
- Clone the repository.
- Open terminal inside the root folder.
- Create and activate new virtual environment. For example, with
conda
:
$ conda create -y -n gsa-dashboard python=3.10
$ conda activate gsa-dashboard
- Install the packages:
$ conda install -y -c conda-forge -c cmutel brightway25
$ conda install -y -c conda-forge intel-openmp=2021.4
$ conda install -y -c anaconda scikit-learn
$ conda install -y -c plotly plotly=5.13.0
$ conda install -y -c conda-forge dash dash-bootstrap-components celery
$ pip install "dash[diskcache]"
- Run the app:
$ python gsa_dash/app.py
- View the app by opening http://127.0.0.1:8050 in a browser.
- Stop the program with
CTRL+C
orCTRL+Z
commands.
8. If you run it again, and see the message Port 8050 is in use by another program, then find the PID of the process and kill it (very elegant, I know):
$ lsof -i tcp:8050
$ kill -9 <PID>
This project has been set up using PyScaffold 4.4. For details and usage information on PyScaffold see https://pyscaffold.org/.