From 857814bdbfd71703ae393577ad587123d2c6cf38 Mon Sep 17 00:00:00 2001 From: XANTRONIX Industrial Date: Sun, 30 Mar 2025 01:13:30 -0400 Subject: [PATCH] Use Sounding.hodograph_samples() --- lib/xmet/hodograph.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/xmet/hodograph.py b/lib/xmet/hodograph.py index a14bd6f..7b69537 100644 --- a/lib/xmet/hodograph.py +++ b/lib/xmet/hodograph.py @@ -167,10 +167,7 @@ class Hodograph(): return self.COLORS[key] def each_significant_sample(self, sounding: Sounding): - for sample in sounding.samples: - if sample.height is None: - continue - + for sample in sounding.hodograph_samples(): if self.color(sample.height) is None: break