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
40 stars 18 forks source link

MultiLCAAAlgebraic outputs constant values with activity created in Activity-Browser #26

Open simaosr opened 1 year ago

simaosr commented 1 year ago

Hello,

I have issues running MultiLCAAlgebraic with activities that are created by Activity-Browser. The activity is parameterized and I am calling loadParams(), but sweeping the parameters does not change the output values.

If I create the activity via a script using lca_algebraic routines, I can then later run the MultiLCAAlgebraic without any issues.

I cannot figure out the difference between the activities that is making it work in one case and not in the other.

Is this a known behavior, or if not, what can I do to make this work ?

Thank you

raphaeljolivet commented 1 year ago

Hi,

loadParams() should transform Brightway parameters to Lca_algebraic ones. Currently It only supports global parameters tought (not per activity).

Could you please export and share (in MP possibly) your parametrized DB as a BW2Package so that I can have a look ?

simaosr commented 1 year ago

Thank you for your reply @raphaeljolivet

The activity that is not working properly with lca_algebraic is using project parameters, while the one that works is using database parameters.

As I cannot figure out how to sent an MP, I'm sharing the two databases here. (SP1 has the "non-working" activity created using Activity-Browser and SP2 has the activity created with Lca_algebraic routines)

LCA_examples.zip

Thank you, Simão