Rename SoundingParameters to SoundingParams
This commit is contained in:
parent
629bee25d9
commit
42b98a8f0c
2 changed files with 6 additions and 6 deletions
|
@ -3,7 +3,7 @@ import cairo
|
|||
|
||||
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, \
|
||||
LAPSE_RATE_DRY, PRESSURE_MAX, PRESSURE_MIN, \
|
||||
PRESSURE_STEP
|
||||
|
@ -240,7 +240,7 @@ class SkewTGraph():
|
|||
cr: cairo.Context,
|
||||
x: float,
|
||||
y: float,
|
||||
params: SoundingParameters):
|
||||
params: SoundingParams):
|
||||
if self.opts.draw_lcl:
|
||||
self.draw_special_isobar(cr, x, y, params.lcl[1])
|
||||
|
||||
|
@ -267,7 +267,7 @@ class SkewTGraph():
|
|||
x: float,
|
||||
y: float,
|
||||
sounding: Sounding,
|
||||
params: SoundingParameters=None):
|
||||
params: SoundingParams=None):
|
||||
cr.rectangle(x, y, self.width, self.height)
|
||||
cr.clip()
|
||||
|
||||
|
|
|
@ -196,7 +196,7 @@ class Sounding(DatabaseTable):
|
|||
def between(n, a, b):
|
||||
return n > a and n < b
|
||||
|
||||
class SoundingParameters():
|
||||
class SoundingParams():
|
||||
def __init__(self):
|
||||
self.lcl = None
|
||||
self.lfc = None
|
||||
|
@ -250,7 +250,7 @@ class SoundingParameters():
|
|||
self.lcl = lcl
|
||||
self.lfc = lfc
|
||||
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.dry_adiabat = dry_adiabat
|
||||
|
@ -259,7 +259,7 @@ class SoundingParameters():
|
|||
|
||||
@staticmethod
|
||||
def from_sounding(sounding: Sounding) -> Self:
|
||||
params = SoundingParameters()
|
||||
params = SoundingParams()
|
||||
params.load_sounding(sounding)
|
||||
|
||||
return params
|
||||
|
|
Loading…
Add table
Reference in a new issue