From 2f7b7e0f1f55440b0f1c9e23c23e1464ec58fc44 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci-lite[bot]" <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com> Date: Thu, 26 Dec 2024 10:54:01 +0000 Subject: [PATCH] [pre-commit.ci lite] apply automatic fixes --- apps/predbat/unit_test.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/apps/predbat/unit_test.py b/apps/predbat/unit_test.py index 950d706c..134f4134 100644 --- a/apps/predbat/unit_test.py +++ b/apps/predbat/unit_test.py @@ -1694,7 +1694,7 @@ def run_single_debug(test_name, my_predbat, debug_file, expected_file=None): if not expected_file: my_predbat.combine_export_slots = False # my_predbat.best_soc_keep = 1.0 - #my_predbat.metric_min_improvement_export = 5 + # my_predbat.metric_min_improvement_export = 5 if re_do_rates: # Set rate thresholds @@ -1783,12 +1783,7 @@ def run_single_debug(test_name, my_predbat, debug_file, expected_file=None): print("Wrote plan to {}".format(filename)) # Expected - actual_data = { - "charge_limit_best": my_predbat.charge_limit_best, - "charge_window_best": my_predbat.charge_window_best, - "export_window_best": my_predbat.export_window_best, - "export_limits_best": my_predbat.export_limits_best - } + actual_data = {"charge_limit_best": my_predbat.charge_limit_best, "charge_window_best": my_predbat.charge_window_best, "export_window_best": my_predbat.export_window_best, "export_limits_best": my_predbat.export_limits_best} actual_json = json.dumps(actual_data) if expected_file: print("Compare with {}".format(expected_file)) @@ -1807,6 +1802,7 @@ def run_single_debug(test_name, my_predbat, debug_file, expected_file=None): print("Wrote plan json to {}".format(filename)) return failed + def run_execute_tests(my_predbat): print("**** Running execute tests ****\n") reset_inverter(my_predbat)