From a51585b4117ffd972efb503a4af5fb7235137594 Mon Sep 17 00:00:00 2001 From: Vanessa Martinez <11972166+vnessamartinez@users.noreply.github.com> Date: Tue, 2 Jul 2024 14:38:43 -0700 Subject: [PATCH] regex to remove degree symbols, if present --- inciweb_wildfires/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/inciweb_wildfires/__init__.py b/inciweb_wildfires/__init__.py index d8d63ed..7383ce2 100644 --- a/inciweb_wildfires/__init__.py +++ b/inciweb_wildfires/__init__.py @@ -72,6 +72,8 @@ def get_prescribed_fires() -> FeatureCollection: def convert_coords(deg: str, min: str, sec: str) -> float: """Handle the flawed coordinates published by InciWeb.""" + # if there's a degree symbol, remove it + deg = deg.replace('ยบ', '') if not min.strip(): min = '0' if not sec.strip():