Skip to content

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