Skip to content

Commit

Permalink
Fix openair-reader to handle white spaces. (#292)
Browse files Browse the repository at this point in the history
  • Loading branch information
bubeck authored Aug 12, 2024
1 parent e93329e commit 05d8d8b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion aerofiles/openair/patterns.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
_C1 = r'(%s):(%s):(%s)' % (_INT, _INT, _FLOAT)
_C2 = r'(%s):(%s)' % (_INT, _FLOAT)

_L = r'%s\s*([NS])\s*%s\s*([EW])'
_L = r'\s*%s\s*([NS])\s*%s\s*([EW])\s*'
_L1 = _L % (_C1, _C1)
_L2 = _L % (_C2, _C2)

Expand Down
2 changes: 1 addition & 1 deletion aerofiles/openair/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ def coordinate(value):

return [lat, lon]

raise ValueError('invalid coordinate format: %s' % value)
raise ValueError('invalid coordinate format: "%s"' % value)


def main(files):
Expand Down

0 comments on commit 05d8d8b

Please sign in to comment.