Skip to content

Commit 089a1e6

Browse files
increase dew point range
1 parent 3ff1f4f commit 089a1e6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cedargrove_temperaturetools/dew_point.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def dew_point(deg_c, humidity, verbose=False):
4949
"""Calculate dew point temperature from measured temperature (Celsius) and
5050
humidity (percent). Returns the calculated dew point (Celsius) and summary
5151
description. Detailed description is provided if verbose=True. Dew point
52-
value is constrained to the range of 0 to 40 (Celsius).
52+
value is constrained to the range of -10 to 40 (Celsius).
5353
5454
:param float deg_c: The temperature in Celsius. No default.
5555
:param float humidity: The humidity in the range of 0 to 100
@@ -67,8 +67,8 @@ def dew_point(deg_c, humidity, verbose=False):
6767
2,
6868
)
6969

70-
# Constrain dew_point to range of 0 to 40 degrees Celsius
71-
dew_point_c = min(max(dew_point_c, 0), 40)
70+
# Constrain dew_point to range of -10 to 40 degrees Celsius
71+
dew_point_c = min(max(dew_point_c, -10), 40)
7272

7373
# Select message from list
7474
for _, (_, maximum, summary, detail) in enumerate(BREAKPOINTS):

0 commit comments

Comments
 (0)