Skip to content

Commit a51585b

Browse files
regex to remove degree symbols, if present
1 parent c348fc1 commit a51585b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

inciweb_wildfires/__init__.py

+2
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ def get_prescribed_fires() -> FeatureCollection:
7272

7373
def convert_coords(deg: str, min: str, sec: str) -> float:
7474
"""Handle the flawed coordinates published by InciWeb."""
75+
# if there's a degree symbol, remove it
76+
deg = deg.replace('º', '')
7577
if not min.strip():
7678
min = '0'
7779
if not sec.strip():

0 commit comments

Comments
 (0)