-
Notifications
You must be signed in to change notification settings - Fork 70
Open
Description
The GetTDewPoint methods (and, therefore, also any other methods that use dew points internally) have an iterative calculation inside them that fails to converge when called with NaN as input.
To Reproduce
psychrolib.GetTDewPointFromRelHum(25, np.nan)
psychrolib.GetTDewPointFromHumRatio(np.nan, 0.010, 101325)
Result:
ValueError: Convergence not reached in GetTDewPointFromVapPres. Stopping.
Expected behavior
Should return NaN, as happens with, e.g., psychrolib.GetHumRatioFromRelHum(25, np.nan, 101325). This also dovetails with supporting vectorised operations; it's helpful & efficient to be able to run the library methods on vectors that include missing data indicated with NaN.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels