Skip to content

Commit

Permalink
Fix bug in to_input_var
Browse files Browse the repository at this point in the history
  • Loading branch information
peanutfun committed Nov 29, 2023
1 parent 8a20d9f commit 1981fe9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion climada/util/calibrate/cross_calibrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def to_csv(self, filepath):
def to_input_var(self, impact_func_gen, **impfset_kwargs):
"""Build Unsequa InputVar from the parameters stored in this object"""
impf_set_list = [
impact_func_gen(**params) for _, params in self.data.iterrows()
impact_func_gen(**row["Parameters"]) for _, row in self.data.iterrows()
]
return InputVar.impfset(impf_set_list, **impfset_kwargs)

Expand Down

0 comments on commit 1981fe9

Please sign in to comment.