From 8b8cfb3add479fa7ad0e11b1734111bdcb2361ee Mon Sep 17 00:00:00 2001 From: XANTRONIX Industrial <xan@xantronix.com> Date: Fri, 7 Mar 2025 11:43:32 -0500 Subject: [PATCH] Slight improvements in docstrings --- lib/xmet/thermo.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/xmet/thermo.py b/lib/xmet/thermo.py index 07b6660..b48bbe9 100644 --- a/lib/xmet/thermo.py +++ b/lib/xmet/thermo.py @@ -12,14 +12,15 @@ def kelvin(c: float) -> float: def vapor_pressure(dewpoint: float) -> float: """ - Return the pressure of vapor in a parcel of a given dewpoint. + Return the pressure, in millibar, of vapor in a parcel of a given + dewpoint. """ return 6.11 * 10 ** ((7.5 * dewpoint) / (237.3 + dewpoint)) def saturated_vapor_pressure(temp: float) -> float: """ - Return the pressure at which the vapor and condensation of a parcel of a - given temperature are at equilibrium. + Return the pressure, in millbar, at which the vapor and condensation of a + parcel of a given temperature are at equilibrium. """ return 6.11 * 10 ** ((7.5 * temp) / (237.3 + temp))