Skip to main content
logo

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 :

  • 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)
  • Support for automatic check of homogeneity of physical units

⚙ 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, <=3.12] :

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

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.

📚 Documentation & resources

Full documentation is hosted on readthedocs

We provide some notebooks :

  • Example notebook : Basic functionalities
  • Handbook : More examples, also showing the usage of the Brightway functions.
  • Workshop : A "real life" exercise used as a short training on lca_algebraic

📧 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

© Licence & Copyright

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

Logo

Please use the following logo to advertise about this librairy.

Metadata

Release files for siegrist-lca-algebraic 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for siegrist-lca-algebraic 1.0.0
File Size Uploaded Provenance Actions
siegrist_lca_algebraic-1.0.0.tar.gz 51.2 kB Without provenance Details for siegrist_lca_algebraic-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for siegrist-lca-algebraic 1.0.0
File Interpreter ABI Platform Actions
siegrist_lca_algebraic-1.0.0-py3-none-any.whl Python 3 none any Details for siegrist_lca_algebraic-1.0.0-py3-none-any.whl

Total release size: 109.3 kB

Release files / siegrist_lca_algebraic-1.0.0.tar.gz

Download URL siegrist_lca_algebraic-1.0.0.tar.gz
Size 51.2 kB
Tags Source
SHA-256 checksum
How to use checksums
b220ee6e01d6794fa09e533770257a248f0d0e7678ab908bc4ee88512950baf5
BLAKE2b-256 checksum
How to use checksums
5fe196d7c68e534b03181b93cc64e32a12fe6629369048d4609b6103f2d5fba9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.3 CPython/3.11.5 Windows/10

Release files / siegrist_lca_algebraic-1.0.0-py3-none-any.whl

Download URL siegrist_lca_algebraic-1.0.0-py3-none-any.whl
Size 58.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1d0c7ff3c4a614eb80e2006e99c8b0e7a519d4e90db13a22cf83156f30a6e51d
BLAKE2b-256 checksum
How to use checksums
4f0f8747a422069c5b49f831dc620be75ddf5de477bf5dc89629506762f09198
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.3 CPython/3.11.5 Windows/10

Security for siegrist-lca-algebraic 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page