Skip to content
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

Merged
merged 6 commits into from
Aug 28, 2023

Conversation

lucacarniato
Copy link
Contributor

related to #32

@lucacarniato lucacarniato requested a review from BillSenior August 7, 2023 11:13
Comment on lines 191 to 196

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"
)

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.

Copy link

@BillSenior BillSenior left a 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

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@lucacarniato lucacarniato merged commit 9acc276 into main Aug 28, 2023
@lucacarniato lucacarniato deleted the feature/GRIDEDIT-619_check_imput_lengths branch August 28, 2023 17:13
@lucacarniato lucacarniato linked an issue Sep 12, 2023 that may be closed by this pull request
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.

No check of input lengths in meshkernel.GeometryList()
2 participants