Rename SoundingParameters to SoundingParams

This commit is contained in:
XANTRONIX 2025-03-14 17:31:10 -04:00
parent 629bee25d9
commit 42b98a8f0c
2 changed files with 6 additions and 6 deletions

View file

@ -3,7 +3,7 @@ import cairo
from typing import Callable from typing import Callable
from xmet.sounding import Sounding, SoundingParameters from xmet.sounding import Sounding, SoundingParams
from xmet.thermo import loft_parcel, moist_lapse_rate, \ from xmet.thermo import loft_parcel, moist_lapse_rate, \
LAPSE_RATE_DRY, PRESSURE_MAX, PRESSURE_MIN, \ LAPSE_RATE_DRY, PRESSURE_MAX, PRESSURE_MIN, \
PRESSURE_STEP PRESSURE_STEP
@ -240,7 +240,7 @@ class SkewTGraph():
cr: cairo.Context, cr: cairo.Context,
x: float, x: float,
y: float, y: float,
params: SoundingParameters): params: SoundingParams):
if self.opts.draw_lcl: if self.opts.draw_lcl:
self.draw_special_isobar(cr, x, y, params.lcl[1]) self.draw_special_isobar(cr, x, y, params.lcl[1])
@ -267,7 +267,7 @@ class SkewTGraph():
x: float, x: float,
y: float, y: float,
sounding: Sounding, sounding: Sounding,
params: SoundingParameters=None): params: SoundingParams=None):
cr.rectangle(x, y, self.width, self.height) cr.rectangle(x, y, self.width, self.height)
cr.clip() cr.clip()

View file

@ -196,7 +196,7 @@ class Sounding(DatabaseTable):
def between(n, a, b): def between(n, a, b):
return n > a and n < b return n > a and n < b
class SoundingParameters(): class SoundingParams():
def __init__(self): def __init__(self):
self.lcl = None self.lcl = None
self.lfc = None self.lfc = None
@ -250,7 +250,7 @@ class SoundingParameters():
self.lcl = lcl self.lcl = lcl
self.lfc = lfc self.lfc = lfc
self.el = el self.el = el
self.cape = SoundingParameters.cape(temp_line, moist_adiabat, lfc, el) self.cape = SoundingParams.cape(temp_line, moist_adiabat, lfc, el)
self.temp_line = temp_line self.temp_line = temp_line
self.dry_adiabat = dry_adiabat self.dry_adiabat = dry_adiabat
@ -259,7 +259,7 @@ class SoundingParameters():
@staticmethod @staticmethod
def from_sounding(sounding: Sounding) -> Self: def from_sounding(sounding: Sounding) -> Self:
params = SoundingParameters() params = SoundingParams()
params.load_sounding(sounding) params.load_sounding(sounding)
return params return params