Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork8.1k
Remove contour warning for "no-valid-levels".#24912
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
If the user explicitly passes a levels array (the default isauto-determined), let's assume that they know what they are doing.
rcomer commentedJan 9, 2023
This also closes#20203. |
oscargus commentedJan 9, 2023
Is this comment from@ianthomas23 dealt with? "We should probably add a check for no levels specified by the user for a contour call, as already happens for contourf." |
anntzer commentedJan 9, 2023
I'm not sure what this really means, but if it's adding a check for |
ianthomas23 commentedJan 9, 2023
My comment meant that if there is an explicit check for user-specified |
oscargus left a comment
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 see the point of:
(I could consider keeping the warning for now in the case where the user didn't pass levels but z is uniform throughout, as that's more likely to be a "data-exploration" case.)but do not have strong opinions enough to claim that it should be there. Seems like a quite safe option though.
anntzer commentedJan 10, 2023
Let's see what others think here. |
tacaswell left a comment
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'm in favor of removing this warning and if we get reports of "all constant and no lines" we can consider putting the warning back in the fully automatic case (and it would make sense to check on the "all constant" case explicitly).
anntzer commentedJan 11, 2023
Sounds good; this is good to go, then? |
oscargus commentedJan 12, 2023
Let's get this in for 3.7. |
…912-on-v3.7.xBackport PR#24912 on branch v3.7.x (Remove contour warning for "no-valid-levels".)
If the user explicitly passes a levels array (the default is auto-determined), let's assume that they know what they are doing.Closes#23778.
(Icould consider keeping the warning for now in the case where the user didn't pass
levelsbutzis uniform throughout, as that's more likely to be a "data-exploration" case.)PR Summary
PR Checklist
Documentation and Tests
pytestpasses)Release Notes
.. versionadded::directive in the docstring and documented indoc/users/next_whats_new/.. versionchanged::directive in the docstring and documented indoc/api/next_api_changes/next_whats_new/README.rstornext_api_changes/README.rst