From 0aff86bc579f2379b45dc907491f14a0768c914c Mon Sep 17 00:00:00 2001 From: XANTRONIX Industrial Date: Thu, 20 Feb 2025 13:38:09 -0500 Subject: [PATCH] Rename parse_shape() to parse_poly() --- lib/nexrad/afos.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/nexrad/afos.py b/lib/nexrad/afos.py index 504259d..011bc4b 100644 --- a/lib/nexrad/afos.py +++ b/lib/nexrad/afos.py @@ -67,7 +67,7 @@ def parse_lat(text: str): def parse_location(lon: str, lat: str): return shapely.Point(parse_lon(lon), parse_lat(lat)) -def parse_shape(text: str): +def parse_poly(text: str): points = list() coords = text.split(' ') @@ -247,7 +247,7 @@ class AFOSMessageParser(): match = RE_POLY.match(line) if match is not None: - self.message.poly = parse_shape(match['coords']) + self.message.poly = parse_poly(match['coords']) match = RE_MOTION.match(line)