-
-
Notifications
You must be signed in to change notification settings - Fork 404
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
Allow specifying Bivariate levels #2474
Conversation
Looks good to me. Happy to merge when the tests are green. |
95ecc8e
to
21da6c8
Compare
Ready to merge, push build failed due to updated test data. |
contour = Contours([[(-0.5, 0.416667, 0.5), (-0.25, 0.5, 0.5)], | ||
[(0.25, 0.5, 0.5), (0.5, 0.45, 0.5)]], | ||
contour = Contours([[(-0.5, 0.416667, 0.5), (-0.25, 0.5, 0.5), | ||
(np.NaN, np.NaN, 0.5), (0.25, 0.5, 0.5), |
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 quite understand where the NaNs come from...
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.
contours
now returns a Contours element with one array per level, if there's multiple contours at a level they will be NaN separated.
Change looks good to me - As long as you have checked that the notebooks with the updated test data now have the correct number of contours, I'm happy to merge once the tests are green. |
I have, also added unit tests to check this. |
Looks good and the pr tests are green. Merging. |
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
This PR allows specifying levels for the Bivariate element as requested in #2099. Additionally it also ensures that the contours operation actually generates the requested number of levels, which was not the case before. Probably changes some test data but it's a clear bug fix.