Contourf bugfix in the presence of nans#4263
Contourf bugfix in the presence of nans#4263jamesp merged 5 commits intoSciTools:mainfrom MHBalsmeier:nanplot_bugfix
Conversation
|
I have checked, it does not break the problem mentioned in #4086. |
|
I don't think I can get the performance test to pass. |
|
Thanks for the PR fix @MHBalsmeier. Don't worry about the performance regression, that CI test is still work in progress, no reason this change should affect the benchmark that triggered. I've re-run the check. @rcomer, do you want to just confirm you're happy with this fix? Seems like a reasonable change to me 👍 |
|
Yes thanks @MHBalsmeier for this. Nice detective work! I have to admit that |
|
Okay I think this is ready for the final review. |
|
I’ve added this to the v3.1 project, as we clearly don’t want to introduce the bug in the next release! My only question is whether this should have a new test, or whether that would be overkill for such a minor change. If we did want a test, I think it could follow the same pattern as the one I added at #4150. Just need to insert a What do you think @MHBalsmeier, @jamesp? |
|
I am not sure if I get your point correctly because why would we introduce a bug with this ... I thought this solves #4086 as well as #4261. As for the test, why not, but I never ran these tests and you seem to have the better idea of how to test this ... |
|
@MHBalsmeier sorry I meant the bug that I introduced at #4150, that you are now fixing. We need to include your fix for the v3.1 release. |
|
@rcomer okay I see |
Test for contourf nan bugfix
|
We have now added a test. I verified that the new test fails against The new failures appear to be because an external file has moved. I have opened #4266 to address that. |
|
Thanks for fixing the doc failures @rcomer. @MHBalsmeier this just needs a rebase and should be good to go 👍 |
…bugfix Pulling in the stuff that has been done on main.
|
Okay, lets see if I did that correctly. |
jamesp
left a comment
There was a problem hiding this comment.
Thanks so much @MHBalsmeier for sticking with it and getting this fix in, much appreciated!
🚀 Pull Request
Description
Fixes #4261 by using
np.nanmax(cube.data)instead ofcube.data.max().