From 9f18968a56ed7c1596c6cb10d371f0c27988aa48 Mon Sep 17 00:00:00 2001 From: XANTRONIX Industrial <xan@xantronix.com> Date: Tue, 11 Mar 2025 17:17:55 -0400 Subject: [PATCH] Rename variable --- lib/xmet/thermo.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/xmet/thermo.py b/lib/xmet/thermo.py index 3df34ff..49d8515 100644 --- a/lib/xmet/thermo.py +++ b/lib/xmet/thermo.py @@ -108,7 +108,7 @@ def loft_parcel(start_temp: float, """ sx_last = None sy_last = None - height_last = None + last_height = None temp = start_temp pressure = start_pressure @@ -118,13 +118,13 @@ def loft_parcel(start_temp: float, while pressure >= PRESSURE_MIN: height = pressure_height(pressure) - if height_last is not None: + if last_height is not None: try: rate = lapse_rate(temp, pressure) except OverflowError: break - temp = lapse(temp, height - height_last, rate) + temp = lapse(temp, height - last_height, rate) yield temp, pressure @@ -135,7 +135,7 @@ def loft_parcel(start_temp: float, else: pressure -= step - height_last = height + last_height = height def follow_dry_adiabat(temp: float, pressure: float) -> Series: """