Skip to main content

This library provides a layer above brightway2 for defining parametric models and running super fast LCA for monte carlo analysis.

Project description

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)

⚙ 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

📚 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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lca_algebraic-1.2.tar.gz (59.6 kB view details)

Uploaded Source

Built Distribution

lca_algebraic-1.2-py2.py3-none-any.whl (74.9 kB view details)

Uploaded Python 2Python 3

File details

Details for the file lca_algebraic-1.2.tar.gz.

File metadata

  • Download URL: lca_algebraic-1.2.tar.gz
  • Upload date:
  • Size: 59.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.16

File hashes

Hashes for lca_algebraic-1.2.tar.gz
Algorithm Hash digest
SHA256 d3d9b1bd80c5e62d5f453b00f15d7fc72aa24c5fe167cfa7a1683405b7ac8af0
MD5 b88fa65924be41c2cdde8c08ce4e1894
BLAKE2b-256 d0f0a33c0f3ff12902de0881b52e5610f5d46a0d019c9e665fc94230da7a4a55

See more details on using hashes here.

File details

Details for the file lca_algebraic-1.2-py2.py3-none-any.whl.

File metadata

  • Download URL: lca_algebraic-1.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 74.9 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.16

File hashes

Hashes for lca_algebraic-1.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 3688d907a2c585cf9f954b93ac6342aa6788b029ece5b4739156c2a4a6d1055b
MD5 08bc0ee0d55b5b43132782c5df995095
BLAKE2b-256 e8d0aa6d0ea6ed414149eb26be5b5d8a6cf46b4902bf25716a790296ec480ed1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page