You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Seeing a failure in holopy/scattering/tests/test_lens.py::TestLens::test_integrand_prefactor_same_with_numexpr_as_without() on the latest develop branch under MacOS 15.2 (Sequoia) with numpy 1.20.3, numexpr 2.10.0. This failure doesn't occur in our macos-latest CI test runner, which uses MacOS 14.7, so it seems to be related to some change in the update to MacOS 15.
_______ TestLens.test_integrand_prefactor_same_with_numexpr_as_without _______
[gw0] darwin -- Python 3.9.21
self = <holopy.scattering.tests.test_lens.TestLens testMethod=test_integrand_prefactor_same_with_numexpr_as_without>
@pytest.mark.skipif(not lens.NUMEXPR_INSTALLED,
reason = "numexpr package required")
def test_integrand_prefactor_same_with_numexpr_as_without(self):
np.random.seed(1649)
krho, phi, kz = np.random.randn(3, 101)
prefactor_numexpr = LENSMIE._integrand_prefactor(krho, phi, kz)
prefactor_numpy = LENSMIE_NO_NE._integrand_prefactor(krho, phi, kz)
if ne.get_vml_version() is None:
> assert_equal(prefactor_numexpr, prefactor_numpy)
E AssertionError:
E Arrays are not equal
E
E Mismatched elements: 7133 / 1010000 (0.706%)
E Max absolute difference: 3.0304372e-20
E Max relative difference: 4.57318647e-16
E x: array([[[5.257655e-10-3.105010e-14j, 5.257655e-10-1.243220e-15j,
E 5.257655e-10-5.002021e-14j, ..., 5.257655e-10+5.604645e-14j,
E 5.257655e-10+1.937360e-14j, 5.257655e-10-1.434728e-14j],...
E y: array([[[5.257655e-10-3.105010e-14j, 5.257655e-10-1.243220e-15j,
E 5.257655e-10-5.002021e-14j, ..., 5.257655e-10+5.604645e-14j,
E 5.257655e-10+1.937360e-14j, 5.257655e-10-1.434728e-14j],...
holopy/scattering/tests/test_lens.py:188: AssertionError
========================== short test summary info ===========================
FAILED holopy/scattering/tests/test_lens.py::TestLens::test_integrand_prefactor_same_with_numexpr_as_without - AssertionError:
=========== 1 failed, 649 passed, 12 skipped, 2 xfailed in 23.62s ============
The text was updated successfully, but these errors were encountered:
Probably need to increase tolerance for the test. We previously increased tolerance for systems using the Intel MKL. Other platforms may be using accelerated math libraries as well, which will cause test failures if numexpr or numpy (but not both) use them by default; for example, numpy can be built using Apple's Accelerate framework.
Seeing a failure in
holopy/scattering/tests/test_lens.py::TestLens::test_integrand_prefactor_same_with_numexpr_as_without()
on the latestdevelop
branch under MacOS 15.2 (Sequoia) with numpy 1.20.3, numexpr 2.10.0. This failure doesn't occur in ourmacos-latest
CI test runner, which uses MacOS 14.7, so it seems to be related to some change in the update to MacOS 15.The text was updated successfully, but these errors were encountered: