Rename variable
This commit is contained in:
parent
604ce577a1
commit
9f18968a56
1 changed files with 4 additions and 4 deletions
|
@ -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:
|
||||
"""
|
||||
|
|
Loading…
Add table
Reference in a new issue