Closed n1c0l492 closed 4 years ago
I cannot reproduce this issue. I don't understand why you provided an example of deifinition of parameter, unrelated to this issue. Could you maybe share minimalist notebook for reproducing the error ?
Here a minimalist notebook. Since the error seems to be related to the parameter, I shared with you the way I defined it.
Thank you
Issue #4 _lambdifygenerated() missing 20 required positional arguments.zip
EDIT:FIXED parameter do not create the issue
I tried to debug. Using a local copy of the script in a new environment, I added this:
def compute(self, **params):
"""Compute result value based of input parameters """
# Filter on required parameters
print(params) #NEW LINE
params = {key : val for key, val in params.items() if key in self.expanded_params}
return self.lambd(**params)
The output of multiLCAAlgebric(well_drilling, impact_list)
is:
{}{}
{}
{}{}
{}
{}
and no computation is performed.
While passing a value: multiLCAAlgebric(well_drilling, impact_list, l=1)
:
{'l': array([1.])}{'l': array([1.])}
{'l': array([1.])}
{'l': array([1.])}
{'l': array([1.])}
{'l': array([1.])}
{'l': array([1.])}
And the LCA computation is performed. So, it seems that no float to the lambdified function is passed since the dictionary is empty. Do you have a suggestion? Thank you
Error while running the multiLCAAlgebraic function. The LCA model and parameters definition are the same used in version 0.0.8.
After update to 0.0.9, it is not working anymore. Here the error outputted