Add input validation for coordinates, dates, and parameters#82
Open
mihiarc wants to merge 2 commits intotaraskiba:mainfrom
Open
Add input validation for coordinates, dates, and parameters#82mihiarc wants to merge 2 commits intotaraskiba:mainfrom
mihiarc wants to merge 2 commits intotaraskiba:mainfrom
Conversation
- Add validate_coordinates() to check lat/lon bounds and missing values - Add validate_date_range() to ensure start_date <= end_date - Add validate_buffer_radius() to check positive values and warn on large radii - Add validate_sample_count() to check positive integers and warn on large counts - Integrate validation in all extraction modules before processing Fixes taraskiba#78 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
for more information, see https://pre-commit.ci
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
validate_coordinates()function to check latitude/longitude bounds (-90 to 90, -180 to 180) and detect missing valuesvalidate_date_range()function to ensure start date is before or equal to end datevalidate_buffer_radius()function to check for positive values and warn on radii > 1 milevalidate_sample_count()function to check for positive integers and warn on counts > 100point_extraction.py,aggregated_point_extraction.py,buffer_method.py,buffer_and_sample.py,geojson_buffering.py) before processingTest plan
Fixes #78
🤖 Generated with Claude Code