Skip to content

Fix coordinate parsing for events datafix: harden coordinate parsing and add tests#7

Open
AhmedAli58 wants to merge 1 commit intoAeroPython:masterfrom
AhmedAli58:fix/coordinate-parsing
Open

Fix coordinate parsing for events datafix: harden coordinate parsing and add tests#7
AhmedAli58 wants to merge 1 commit intoAeroPython:masterfrom
AhmedAli58:fix/coordinate-parsing

Conversation

@AhmedAli58
Copy link

Problem: convert_lat and convert_lon can raise TypeError or IndexError for None, short, or malformed inputs, causing event loading to fail.

Solution: Introduce centralized coordinate parsing with input validation, safe fallback to np.nan, and debug logging for invalid inputs.

Tests: PYTHONPATH=. pytest

Compatibility: No breaking changes. Invalid inputs still resolve to np.nan, now without crashes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants