Skip to content

Commit

Permalink
Replace pandas deprecated clip_upper by clip(upper=
Browse files Browse the repository at this point in the history
  • Loading branch information
Bachibouzouk committed Apr 3, 2022
1 parent 73f80ee commit 33433ca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/G2b_constraints_custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ def backup_test(case_dict, oemof_results, experiment, e_flows_df):
],
index=demand_profile.index,
)
ratio_below_zero = ratio.clip_upper(0)
ratio_below_zero = ratio.clip(upper=0)
test_warning(ratio_below_zero, oemof_results, boolean_test)
else:
pass
Expand Down Expand Up @@ -419,7 +419,7 @@ def hybrid_test(case_dict, oemof_results, experiment, e_flows_df):
],
index=demand_profile.index,
)
ratio_below_zero = ratio.clip_upper(0)
ratio_below_zero = ratio.clip(upper=0)
test_warning(ratio_below_zero, oemof_results, boolean_test)

else:
Expand Down Expand Up @@ -534,7 +534,7 @@ def usage_test(case_dict, oemof_results, experiment, e_flows_df):
],
index=demand_profile.index,
)
ratio_below_zero = ratio.clip_upper(0)
ratio_below_zero = ratio.clip(upper=0)
test_warning(ratio_below_zero, oemof_results, boolean_test)
else:
pass
Expand Down

0 comments on commit 33433ca

Please sign in to comment.