Skip to content

Commit

Permalink
Update api/app/weather_models/precip_rdps_model.py
Browse files Browse the repository at this point in the history
  • Loading branch information
dgboss authored Oct 11, 2024
1 parent a7ef47e commit 74acf1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/app/weather_models/precip_rdps_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def _diff(value_a: float, value_b: float):
"""
Subtract value_a from value_b.
:param value_a: The first value
:param value_b: _description_
:param value_b: The second value
:raises ValueError: If difference is less than -0.01 (ie. negative precip not allowed)
:return: Return value_a minus value_b if the value is >= 0. If the difference is slightly negative (-0.01 <= value < 0), due to floating
point math for example, return 0. If the value is truly negative, raise an error.
Expand Down

0 comments on commit 74acf1a

Please sign in to comment.