-
Notifications
You must be signed in to change notification settings - Fork 4
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
Check geometry list input lengths #80
Conversation
meshkernel/py_structures.py
Outdated
|
||
if len(self.values) > 0 and len(self.values) != len(self.y_coordinates): | ||
raise InputError( | ||
"The length of values is not equal to the length of y_coordinates" | ||
) | ||
|
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.
I don't think this test is necessary.
line 182 checks that x_coords and y_coords are the same length, then
line 187 check values is same as x_coords (if length of values is > 0)
at this point it must be that x_coords and y_coords are the same size.
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.
Only this one comment about the error checking
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
related to #32