Lca-algebraic

Latest version: v1.1.2

Safety actively analyzes 682334 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 3

1.1

🎉 We are glad to release a [**new version of lca_algebraic** : 1.1](https://pypi.org/project/lca-algebraic/1.1/). 🍾

Main changes :

- Update to latest **Brightway 2.4.X** (not Brightway25 yet). Which itself enables the use of [bw2io.import_ecoinvent_release](https://lca-algebraic.readthedocs.io/en/latest/notebooks/example-notebook.html#Init-brightway2-and-databases) for easier import of `Ecoinvent`
- 📚 Added [full documentation of the API + example notebook](https://lca-algebraic.readthedocs.io/)
- Renamed _multiLCAAlgebraic_ to [compute_impacts](https://lca-algebraic.readthedocs.io/en/latest/api/lca.html#lca_algebraic.compute_impacts)
- Added `functional_unit` argument to `compute_impacts` (and other functions) : removing the need to manually build custom activities normalized by the functional units, and making it more flexible.
- Added *returns_params* argument to *compute_impact*, to include the values of all parameters in the result, as a *tabbed* dataframe that can be saved as multisheet Excel file.
- Added [support for *axis*](https://lca-algebraic.readthedocs.io/en/latest/notebooks/example-notebook.html#Split-impacts-along-axis) : Flag your activities with **custom attributes** (by phase, subsystem or whatever) and get the impacts split by those.
- Added **computed parameters** : Parameters whose default values are Sympy expressions, computed from other parameters. Their values can be overwritten.
- Added [linear interpolation of several activities](https://lca-algebraic.readthedocs.io/en/latest/api/activities.html#interpolate-activities), based on the value of a parameter.
- Improved compatibility with *ActivityBrowser* : It is now possible to compute impacts / sankey diagrams, etc on a [frozen database](https://lca-algebraic.readthedocs.io/en/latest/notebooks/example-notebook.html#Freeze) (=a given scenario of parameters). Full parametric computation of impact in *ActivityBrowser* works for simple cases only.
- No more conda package. [Use pip instead ](https://github.com/oie-mines-paristech/lca_algebraic?tab=readme-ov-file#installation)
- Many bug fixes 🐜

👷‍♂️ Next to come .... stay tuned ! :
- Explicit declaration and automatic check of **physical units** in inventories (using [Pint](https://pint.readthedocs.io/en/stable/))
- Automatic **creation of dynamic web app** from a parametric model, (using [streamlit](https://streamlit.io/))
- Migration to **Brightway 2.5**.

Also, we now have a dedicated mailing list for updates and discussions. Please register !
📧 [lca_algebraicgroupes.mines-paristech.fr](https://groupes.minesparis.psl.eu/wws/subscribe/lca_algebraic)

1.0.0

* Add multi-dataset support, replacing **SET_USER_DB** by **setBackground()**, **setForeground()**
* Added **freezeParams()** to freeze parametric dataset for specific scenario to be used by non parametric tools or other foreground datasets.
* Added dataset parameters : parameters scoped to a specific dataset, with scope / conflict resolution of parameters with same names.
* Added extended import / export of datasets with their parameters : **export_db()**, **import_db()**
* Added non regression tests

0.0.15

* Added explicit error when cycle is detected in activities.
This usually means a Bg activity has been imported into User DB :
lca_algebraic does not support cycles / recursion in User Db,
since those are developped as litteral formulas.
* Added support for several background databases.
User Db is guessed or can be specified using **SET_USER_DB**()
* Support coproducts in graphtraversal.
See [PR 9] by ntropy-esa
* Add support for loading / saving parameters into Brightway DB, with compatibility with Brightway2 and Activity Browser.
See functions **loadParams**() and **persistParams()**. See also issue 8.
* Added new function **exploreImpacts()**, like **printAct()** but showing impact of each exchange.

0.0.14

* Internal change for generated webapp
* Add several display options to graphs()
* Fix overlapping graph bug

0.0.13

* Fixed bug in param **extract_activities** of **multiLCAAlgebric**

0.0.12

* Added a step of simplification of models in **sobol_simplify_model** by removing minor terms of sums
* Added support for alternate names for impact methods with the function **set_custom_impact_labels**
* Added parameter **extract_activities** to **multiLCAAlgebric** in order to compute contribution of a subset of activities to the global impact

Page 1 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.