Skip to content

Commit

Permalink
Update temperature_helper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
elden1337 authored Sep 11, 2024
1 parent 4be742b commit 4f2aec4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def get_temp_trend_offset(
ret = max(round(new_temp_diff, 1), 0)
else:
ret = min(round(new_temp_diff, 1), 0)
return min((round(ret / 2, 1)), 1) * -1
return min((round(ret / 2, 1)), 1) * (-1 if ret > 0 else 1)


def _temp_extremas_return(diffs, tolerance) -> float:
Expand Down

0 comments on commit 4f2aec4

Please sign in to comment.