-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Validate vector geometry types #1430
Conversation
@@ -3507,34 +3507,6 @@ def validate(args, limit_to=None): | |||
invalid_keys = validation.get_invalid_keys(validation_warnings) | |||
sufficient_keys = validation.get_sufficient_keys(args) | |||
|
|||
if 'shelf_contour_vector_path' not in invalid_keys: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is now redundant to validation.validate
.
def test_validate_bad_aoi_incorrect_proj_units(self): | ||
"""WaveEnergy: test validating AOI vector with incorrect units.""" | ||
from natcap.invest import wave_energy, validation | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These tests aren't specific to wave energy, and the same thing is covered in the validation tests. I removed them because the sample data vectors they use have the wrong geometry type, which now breaks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @emlys, one suggestion and one question. I also see there are some merge conflicts in History.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @emlys !
Description
Fixes #1374
Checklist