From 698a7d34c8d3e9f53293179ddce98fdd7f4825de Mon Sep 17 00:00:00 2001 From: XANTRONIX Industrial Date: Sun, 9 Mar 2025 16:45:31 -0400 Subject: [PATCH] Simplify --- lib/xmet/thermo.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/xmet/thermo.py b/lib/xmet/thermo.py index 1c17ec0..3903c87 100644 --- a/lib/xmet/thermo.py +++ b/lib/xmet/thermo.py @@ -129,9 +129,7 @@ def loft_parcel(start_temp: float, except OverflowError: break - height_delta = height - height_last - - temp = lapse(temp, height_delta, rate) + temp = lapse(temp, height - height_last, rate) yield temp, pressure