Layer over brightway2 for algebraic definition of parametric models and super fast computation of LCA
lca_algebraic 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 :
We don’t provide conda package anymore.
This packages is available via pip /pypi
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
pip install lca_algebraic
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
NOTE
While the inventories created in lca_algebraic are stored in the Brightway project,
the formulas and parameters are not compatible with Activity Browser
Before computing impacts with vanilla Brightway2 or Activity Browser,
you may use the function freezeParams()
to update the amounts in your database for a given scenario / set of parameter values.
Full documentation is hosted on readthedocs
We provide some notebooks :
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
This library has been developed by MinesParis - PSL - O.I.E team, for the project INCER-ACV,
lead by ADEME.
It is distributed under the BSD License
Please use the following logo to advertise about this librairy.