From d6785a5c36fc8c4addb7f884218cb8d4a953d045 Mon Sep 17 00:00:00 2001 From: "pierre-francois.duc" Date: Sun, 3 Apr 2022 23:18:48 +0200 Subject: [PATCH] Replace pandas deprecated clip_upper by clip(upper= --- src/G2b_constraints_custom.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/G2b_constraints_custom.py b/src/G2b_constraints_custom.py index debfbff..7cb4e7b 100644 --- a/src/G2b_constraints_custom.py +++ b/src/G2b_constraints_custom.py @@ -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 @@ -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: @@ -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