Skip to content

Commit

Permalink
Fixed black error
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamFinkle committed Jan 22, 2025
1 parent 44abece commit df71968
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions python/src/rules_engine/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit df71968

Please sign in to comment.