{"id":13724379,"url":"https://github.com/oie-mines-paristech/lca_algebraic","last_synced_at":"2025-04-05T23:08:31.273Z","repository":{"id":37624327,"uuid":"251337484","full_name":"oie-mines-paristech/lca_algebraic","owner":"oie-mines-paristech","description":"Layer over brightway2 for algebraic definition of parametric models and super fast computation of LCA ","archived":false,"fork":false,"pushed_at":"2024-10-10T14:34:09.000Z","size":16963,"stargazers_count":38,"open_issues_count":29,"forks_count":18,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-10-29T22:30:57.260Z","etag":null,"topics":["brightway2","foreground-activities","lca","lca-algebraic","monte-carlo","numpy","symbolic-expressions"],"latest_commit_sha":null,"homepage":null,"language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oie-mines-paristech.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-03-30T14:53:35.000Z","updated_at":"2024-10-24T20:28:26.000Z","dependencies_parsed_at":"2024-01-08T01:44:41.473Z","dependency_job_id":"bbc0cc56-d98a-4f5f-8bb1-800882174860","html_url":"https://github.com/oie-mines-paristech/lca_algebraic","commit_stats":{"total_commits":201,"total_committers":6,"mean_commits":33.5,"dds":0.04975124378109452,"last_synced_commit":"a1313d2b92966699e0e058e8528ec9a68a503c4f"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oie-mines-paristech%2Flca_algebraic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oie-mines-paristech%2Flca_algebraic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oie-mines-paristech%2Flca_algebraic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oie-mines-paristech%2Flca_algebraic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oie-mines-paristech","download_url":"https://codeload.github.com/oie-mines-paristech/lca_algebraic/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244493201,"owners_count":20461623,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["brightway2","foreground-activities","lca","lca-algebraic","monte-carlo","numpy","symbolic-expressions"],"created_at":"2024-08-03T01:01:56.114Z","updated_at":"2025-03-22T21:13:40.699Z","avatar_url":"https://github.com/oie-mines-paristech.png","language":"Jupyter Notebook","funding_links":[],"categories":["Industrial Ecology"],"sub_categories":["Life Cycle Assessment"],"readme":"# Introduction\n\nThis library is a layer above [**brightway2**](https://brightway.dev/) designed for the definition of **parametric inventories** \nwith fast computation of LCA impacts, suitable for **monte-carlo** / global sensitivity analysis \n\nIt integrates the magic of [Sympy](https://www.sympy.org/en/index.html) in order to write parametric formulas as regular Python expressions.\n\n**lca-algebraic** provides a set of **helper functions** for : \n* **compact** \u0026 **human readable** definition of activities :  \n    * search background (tech and biosphere) activities \n    * create new foreground activities with parametrized amounts\n    * parametrize / update existing background activities (extending the class **Activity**)\n* Definition of parameters\n* Fast computation of LCAs\n* Computation of monte carlo method and global sensitivity analysis (Sobol indices) \n\n# ⚙ Installation\n\nWe don't provide conda package anymore.\n\nThis packages is available via [pip /pypi](https://pypi.org/project/lca-algebraic/)\n\n## 1) Setup separate environement\n\nFirst create a python environment, with **Python** [\u003e=3.9] :\n\n**With Conda (or [mamba](https://mamba.readthedocs.io/en/latest/index.html))**\n\n```bash\nconda create -n lca python==3.10\nconda activate lca\n```\n\n**With virtual env**\n\n```bash\npython3.10 -m venv .venv\nsource .venv/bin/activate\n```\n\n## 2) Install lca_algebraic\n\n\u003e pip install lca_algebraic \n\n## 3) [Optional] Install Jupyter \u0026 Activity Browser \n\nYou may also install Jupyter and [Activity Browser](https://github.com/LCA-ActivityBrowser/activity-browser) on the same \nenvironment.\n\n**Jupyter** :\n\u003e pip  install jupyter\n\n**Activity Browser** can only be installed via conda/mamba. Note that it can also be installed on a separate Python env and will \nstill be able to access and browse the projects created programmatically with *lca_algebraic* / *Brightway*.  \n\u003e conda install activity-browser\n\n\n# 📚 Documentation \u0026 resources\n\nFull documentation is [hosted on **readthedocs**](https://lca-algebraic.readthedocs.io/)\n\nWe provides some notebooks :\n* [Example notebook](./notebooks/example-notebook.ipynb) : Basic functionalities  \n* [Handbook](./notebooks/handbook.ipynb) : More examples, also showing the usage of the Brightway functions.\n* [Workshop](https://git.sophia.mines-paristech.fr/oie/lca-algebraic-workshop) :\n  A \"real life\" exercise used as a short training on *lca_algebraic*\n\n# 📧 Mailing list\n\nPlease register to this dedicated mailing list to discuss the evolutions of this library and be informed of future releases :\n\n[lca_algebraic@groupes.mines-paristech.fr](https://groupes.minesparis.psl.eu/wws/subscribe/lca_algebraic)\n\n\n# © Licence \u0026 Copyright\n\nThis library has been developed by [OIE - MinesParistech](http://www.oie.mines-paristech.fr), for the project [*INCER-ACV*](https://librairie.ademe.fr/energies-renouvelables-reseaux-et-stockage/4448-incer-acv.html), \nlead by [ADEME](https://www.ademe.fr/). \n\nIt is distributed under the [BSD License](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foie-mines-paristech%2Flca_algebraic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foie-mines-paristech%2Flca_algebraic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foie-mines-paristech%2Flca_algebraic/lists"}