This library provides a layer above brightway2 for defining parametric models and running super fast LCA for monte carlo analysis.
Project description
Introduction
This library is a layer above brightway2 designed for the definition of parametric inventories with fast computation of LCA impacts, suitable for monte-carlo / global sensitivity analysis
It integrates the magic of Sympy in order to write parametric formulas as regular Python expressions.
lca-algebraic provides a set of helper functions for :
- compact & human readable definition of activities :
- search background (tech and biosphere) activities
- create new foreground activities with parametrized amounts
- parametrize / update existing background activities (extending the class Activity)
- Definition of parameters
- Fast computation of LCAs
- Computation of monte carlo method and global sensitivity analysis (Sobol indices)
Installation
We don't provide conda package anymore.
This packages is available via pip /pypi
1) Setup separate environement
First create a python environment, with Python [>=3.9] :
With Conda (or mamba)
conda create -n lca python==3.10
conda activate lca
With virtual env
python3.10 -m venv .venv
source .venv/bin/activate
2) Install lca_algebraic
pip install lca_algebraic
3) [Optional] Install Jupyter & Activity Browser
You may also install Jupyter and Activity Browser on the same environment.
Jupyter :
pip install jupyter
Activity Browser can only be installed via conda/mamba. Note that it can also be installed on a separate Python env and will still be able to access and browse the projects created programmatically with lca_algebraic / Brightway.
conda install activity-browser
Licence & Copyright
This library has been developed by OIE - MinesParistech, for the project INCER-ACV, lead by ADEME.
It is distributed under the BSD License
Mailing list
Please register to this dedicated mailing list to discuss the evolutions of this library and be informed of future releases :
lca_algebraic@groupes.mines-paristech.fr
Documentation
Full documentation and example notebooks are hosted on readthedocs
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file lca_algebraic-1.1.2.tar.gz
.
File metadata
- Download URL: lca_algebraic-1.1.2.tar.gz
- Upload date:
- Size: 52.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77e3d048b90d193905afd2ee858f86dba3ee510d4c06547a65ee00cec4bbef35 |
|
MD5 | d6ba9290c7ae624ad354621fba43cd85 |
|
BLAKE2b-256 | 84dc68d60c7b78452b556dc2f465d302e7d37dad2f6bb4aa15bd63f8992bb794 |
File details
Details for the file lca_algebraic-1.1.2-py2.py3-none-any.whl
.
File metadata
- Download URL: lca_algebraic-1.1.2-py2.py3-none-any.whl
- Upload date:
- Size: 72.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c2b61c00c66ea91810b952570ffbbfc3adeac918c98ed996209f26ed9a2cd20 |
|
MD5 | c4638ab9f031cbb194b4e8edf84c9282 |
|
BLAKE2b-256 | c56b686f047a27b89f9db6256699f09f8fe65a74f4334d5c917b15898441ee10 |