Repository navigation
Fix: Numpy 1.24 sincos followup - #10786
Merged
Merged
Conversation
swap357
force-pushed
the
fix/np124_sincos_followup
branch
from
August 17, 2026 19:22
2c1dce2 to
ea33e58
Compare
Add the 4-ULP allowance to test_series_ufunc and test_basic_offload, which numba#10572 missed.
Skip test_windowing and test_lift_objectmode_issue_4223 on Linux x86_64 with NumPy<1.25, where relative ULP comparison cannot match near-zero residuals or accumulated error.
swap357
force-pushed
the
fix/np124_sincos_followup
branch
from
August 17, 2026 19:25
ea33e58 to
a48c0b3
Compare
Contributor
Author
|
I tested this on Intel x86 system ( with patch - |
esc
requested changes
Aug 18, 2026
esc
left a comment
Member
There was a problem hiding this comment.
Please mention the pre-cursor PR where the reduction was first attempted -- in the release notes snippet. Otherwise, good to go
Contributor
Author
Thank you, I've updated the release note with 4255c69 |
Member
|
Ignoring CI glitch and proceeding with merge |
esc
approved these changes
Aug 18, 2026
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.
Follow-up to #10572 for remaining CI failures on Linux x86_64 with NumPy < 1.25.
#10572 added a 4-ULP allowance for
numpy_sincos_low_precision, but two asserts were missed and two tests still fail under that budget:test_series_ufuncandtest_basic_offloadnow use the sameulps = 4 if numpy_sincos_low_precision else 1check.test_windowingis skipped: near-zero blackman endpoints differ in sign (4e-17vs-1e-17), which relative ULP comparison cannot match.test_lift_objectmode_issue_4223is skipped: repeated sin/cos in that loop lets the NumPy < 1.25 error grow past ULP tolerance.Strict comparison is unchanged everywhere else.
Fixes #10571
Assisted-by: Kilo (Grok 4.6)