Use Sounding.hodograph_samples()

This commit is contained in:
XANTRONIX 2025-03-30 01:13:30 -04:00
parent e5b95b3079
commit 857814bdbf

View file

@ -167,10 +167,7 @@ class Hodograph():
return self.COLORS[key] return self.COLORS[key]
def each_significant_sample(self, sounding: Sounding): def each_significant_sample(self, sounding: Sounding):
for sample in sounding.samples: for sample in sounding.hodograph_samples():
if sample.height is None:
continue
if self.color(sample.height) is None: if self.color(sample.height) is None:
break break