BUG: support numpy's mimimummaximum ufunc - #20391
neutrinoceros wants to merge 2 commits into
Conversation
|
Thank you for your contribution to Astropy! 🌌 This checklist is meant to remind the package maintainers who will review this pull request of some common things to look for.
|
7cdd936 to
1460455
Compare
|
Tests are passing locally. I expect to be able to undraft this when CI completes. |
1460455 to
7d53156
Compare
|
Whoops, I forgot about masked. |
7d53156 to
797d5e8
Compare
|
I added test coverage for |
797d5e8 to
e8656a7
Compare
|
FYI in numpy/numpy#32577 we discovered some edge cases that |
|
@neutrinoceros - I think you're running into the fact that, by default, a masked reduction always or's all the masks together. This is reasonable for some reductions (like So, I think for Note that with that in place, we can also update the |
|
@mhvk yeah in numpy we chose on the PR to not add yet another method to the ndarray. Would you argue that making minmax a method too is helpful? We had settled on doing |
|
@ikrommyd - thanks for wondering! No, I don't think |
I don't think I understand how |
|
|
@neutrinoceros - the |
e8656a7 to
28f1da9
Compare
28f1da9 to
3dd9a4b
Compare
|
Thank you both. I think I have a mostly1 correct implementation now:
Footnotes
|
Description
xref: numpy/numpy#32231
Opening as a draft with only a partial solution, because it's taking me longer than I anticipated and I must leave for now.
AI Disclosure
None
Merge method