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