From d8831609d52174b39f6bdda3e673af223003dc84 Mon Sep 17 00:00:00 2001 From: XANTRONIX Industrial Date: Sun, 9 Mar 2025 17:45:24 -0400 Subject: [PATCH] Ensure initial temp, pressure value visited --- lib/xmet/thermo.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/xmet/thermo.py b/lib/xmet/thermo.py index 984706b..c19a6e1 100644 --- a/lib/xmet/thermo.py +++ b/lib/xmet/thermo.py @@ -113,6 +113,8 @@ def loft_parcel(start_temp: float, temp = start_temp pressure = start_pressure + yield temp, pressure + while pressure >= PRESSURE_MIN: height = pressure_height(pressure)