Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

changed numexpr test tolerance to ulp=5 on all platforms #459

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

vnmanoharan
Copy link
Contributor

Fixes #458. A test failure was occurring on MacOS Sequoia (version 15) where numpy and numexpr gave slightly different results in holopy/scattering/tests/test_lens.py::TestLens::test_integrand_prefactor_same_with_numexpr_as_without(). Previously the test looked for exact agreement. This PR allows approximate agreement to within 5 ULPs, which is the range of error expected from accelerated math libraries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Test failure on MacOS Sequoia in numexpr/numpy comparison
2 participants