Skip to content

Commit

Permalink
Merge branch 'production' into dev-to-prod-31-10-2024
Browse files Browse the repository at this point in the history
  • Loading branch information
spyrostz authored Oct 31, 2024
2 parents b128772 + d51e7b8 commit dc54384
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 @@ -448,7 +448,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 dc54384

Please sign in to comment.