Repository navigation
Adds runtime warning on divide-by-zero. - #5315
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #5315 +/- ##
========================================
Coverage ? 100.00%
========================================
Files ? 5
Lines ? 115
Branches ? 0
========================================
Hits ? 115
Misses ? 0
Partials ? 0
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
drculhane
force-pushed
the
Alternate-Closes-5132
branch
from
January 23, 2026 13:56
8864961 to
566cc9d
Compare
drculhane
marked this pull request as ready for review
January 23, 2026 13:58
ajpotts
reviewed
Jan 23, 2026
ajpotts
reviewed
Jan 23, 2026
ajpotts
approved these changes
Jan 23, 2026
ajpotts
enabled auto-merge
February 3, 2026 17:55
ajpotts
disabled auto-merge
February 3, 2026 21:29
ajpotts
enabled auto-merge
February 3, 2026 21:29
drculhane
force-pushed
the
Alternate-Closes-5132
branch
2 times, most recently
from
February 4, 2026 12:49
2eb0ae4 to
a795292
Compare
ajpotts
approved these changes
Feb 9, 2026
github-merge-queue Bot
pushed a commit
that referenced
this pull request
Feb 9, 2026
…" in arctan2 (#5315) Closes #5132 and #5149. This takes the place of PR #5204. - The binops in pdarrayclass.py now give a RuntimeWarning or a Floating Point Error (or nothing) if / or // cause a divide-by-zero, _depending on the "divide" setting of ak.errstate_. - Because the RuntimeWarning surfaced an issue in `arctan2`, I've rewritten that function somewhat. It now has an "out" parameter matching numpy, and uses the "where" parameter correctly. - arctan2 now also accepts bool inputs, which requires special handling. np.arctan2, if given bool inputs, returns np.float16, which arkouda doesn't like. - Most of the original arctan2 function remains as `_arctan2_`, because (_subjective opinion here_) I think that calling it as a separate function improves the readability of the code. - In doing this rewriting, I removed some mypy ignores that are no longer needed. - I rewrote the unit tests for `arctan2` to use our newer assert functions. I think this cleans up that code significantly. In the cases that use "where," I check both the returned result, and the returned "out" pdarray, since they should match. --------- Co-authored-by: drculhane <[email protected]>
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Feb 9, 2026
drculhane
force-pushed
the
Alternate-Closes-5132
branch
from
February 10, 2026 18:56
0a6b653 to
d291094
Compare
drculhane
force-pushed
the
Alternate-Closes-5132
branch
from
February 10, 2026 19:38
d291094 to
03936b9
Compare
drculhane
force-pushed
the
Alternate-Closes-5132
branch
from
February 10, 2026 19:39
03936b9 to
2e670f0
Compare
Contributor
|
This PR caused the regression shown in https://chapel-lang.org/perf/arkouda/16-node-hpe-apollo-hdr/?startdate=2026/01/11&enddate=2026/02/12&graphs=streamperformance. Couple of things to note offhand:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #5132.
This takes the place of PR #5204.
The binops in pdarrayclass.py now give a RuntimeWarning or a Floating Point Error (or nothing) if / or // cause a divide-by-zero, depending on the "divide" setting of ak.errstate.
Because the RuntimeWarning surfaced an issue in
arctan2, I've rewritten that function somewhat. It now has an "out" parameter matching numpy, and uses the "where" parameter correctly.NOTE: the arctan2 and test_arctan2 changes have been removed. They'll come back in another PR.