Skip to content

Commit

Permalink
Merge branch 'production' into dev-to-prod-2025-01-07
Browse files Browse the repository at this point in the history
  • Loading branch information
spyrostz authored Jan 7, 2025
2 parents 296caf0 + d425da5 commit c2815d4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gsy_e/models/area/scm_dataclasses.py
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,8 @@ def savings(self):
savings_absolute = KPICalculationHelper().saving_absolute(
self.base_energy_bill_excl_revenue, self.gsy_energy_bill_excl_revenue
)
assert savings_absolute > -FLOATING_POINT_TOLERANCE
if savings_absolute < -FLOATING_POINT_TOLERANCE:
logging.error("Negative absolute savings %s.", savings_absolute)
return savings_absolute

@property
Expand Down

0 comments on commit c2815d4

Please sign in to comment.