oie-mines-paristech / lca_algebraic

Layer over brightway2 for algebraic definition of parametric models and super fast computation of LCA
BSD 2-Clause "Simplified" License
34 stars 18 forks source link

Statefull lca_algebraic issue with multiLCAAlgebric #57

Open gschwind opened 2 weeks ago

gschwind commented 2 weeks ago

Hello,

With lca_algebraic-1.1.0, calling multiLCAAlgebric with worng parameters break futur call of multiLCAAlgebric.

if I call:

multiLCAAlgebric(some_modules, some_methods, unknown_paramters=some_value)

I get an exception, which is fine, but when I call multiLCAAlgebric again with valid parameters, I still get an exception for the unknown_parameters of the previous call. It can only be fixed by restarting a new python interpreter.

Best regards

gschwind commented 2 weeks ago

this issue also apply to compute_impacts