Skip to content

arraymath: add temporal scalar support for np reduction functions - #10533

Merged
esc merged 9 commits into
numba:mainfrom
amishhhaaaa:minmax
Apr 28, 2026
Merged

esc merged 9 commits into
numba:mainfrom
amishhhaaaa:minmax

Conversation

@amishhhaaaa

@amishhhaaaa amishhhaaaa commented Apr 12, 2026

Copy link
Copy Markdown
Contributor

Part of #10522.
Part of #10408.
Added support to handle Temporal scalar types for np.min, np.max and np_all

Signed-off-by: Amisha Chhajed <amishhhaaaa@gmail.com>
Signed-off-by: Amisha Chhajed <amishhhaaaa@gmail.com>

@swap357 swap357 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @amishhaa for the PR and tests. I've left some initial review comments below

Comment thread numba/tests/test_array_reductions.py
Comment thread docs/upcoming_changes/10533.bug_fix.rst Outdated
Comment thread numba/tests/test_array_reductions.py

@esc esc left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With #10489 the location of the NPDatetime and NPTimedelta has changed. Please update where they come from. The are still available in types but that is for backwards compatibility.

Comment thread numba/np/arraymath.py Outdated
Comment thread numba/np/arraymath.py Outdated
amishhhaaaa and others added 7 commits April 17, 2026 01:51
Signed-off-by: Amisha Chhajed <amishhhaaaa@gmail.com>
Signed-off-by: Amisha Chhajed <amishhhaaaa@gmail.com>
Signed-off-by: Amisha Chhajed <amishhhaaaa@gmail.com>
Signed-off-by: Amisha Chhajed <amishhhaaaa@gmail.com>
@amishhhaaaa
amishhhaaaa requested a review from swap357 April 21, 2026 18:41
@swap357 swap357 changed the title arraymath: add temporal scalar support for np.min and np.max arraymath: add temporal scalar support for np reduction functions Apr 22, 2026

@swap357 swap357 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've reviewed it again, looks very good now, thanks. :) The tests are all added and green. I've updated the title as well. I'll do one more pass little later to see if everything is working as it should be.

@amishhhaaaa

Copy link
Copy Markdown
Contributor Author

@swap357 okay thank you!

@swap357 swap357 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed again, looks good. Thanks for the contribution, @amishhaa much appreciated! If you'd like to pick up something else, please feel free to go through issue tracker. There's #4074, that tracks missing NumPy overloads if you're after more in this area.

@esc
esc merged commit d9bcdfd into numba:main Apr 28, 2026
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants