Skip to content

Commit

Permalink
regex to remove degree symbols, if present
Browse files Browse the repository at this point in the history
  • Loading branch information
vnessamartinez committed Jul 2, 2024
1 parent c348fc1 commit a51585b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions inciweb_wildfires/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit a51585b

Please sign in to comment.