From df719681d2605ab5901e4efbad6c4a3c3ce8cce7 Mon Sep 17 00:00:00 2001 From: AdamFinkle <77808710+AdamFinkle@users.noreply.github.com> Date: Tue, 21 Jan 2025 21:39:37 -0500 Subject: [PATCH] Fixed black error --- python/src/rules_engine/engine.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/python/src/rules_engine/engine.py b/python/src/rules_engine/engine.py index 030469c6..95fbc889 100644 --- a/python/src/rules_engine/engine.py +++ b/python/src/rules_engine/engine.py @@ -568,18 +568,20 @@ def _calculate_balance_point_and_ua( winter_processed_energy_bills=self.winter_processed_energy_bills, ) - if (isinstance(results["balance_point"], float)): + if isinstance(results["balance_point"], float): self.balance_point = results["balance_point"] - if (isinstance(results["avg_ua"], float)): + if isinstance(results["avg_ua"], float): self.avg_ua = results["avg_ua"] - if (isinstance(results["stdev_pct"], float)): + if isinstance(results["stdev_pct"], float): self.stdev_pct = results["stdev_pct"] balance_point_graph_records_extension = results[ "balance_point_graph_records_extension" ] if isinstance(balance_point_graph_records_extension, list): - self.balance_point_graph.records.extend(balance_point_graph_records_extension) + self.balance_point_graph.records.extend( + balance_point_graph_records_extension + ) while self.stdev_pct > stdev_pct_max: outliers = [ @@ -632,7 +634,7 @@ def _calculate_balance_point_and_ua( balance_point_graph_records_extension = results[ "balance_point_graph_records_extension" ] - + if isinstance(balance_point_graph_records_extension, list): self.balance_point_graph.records.extend( balance_point_graph_records_extension