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

arm64 test failure with numpy 1.24.2 #2866

Open
4 tasks done
Tracked by #2911
mr-c opened this issue Aug 17, 2023 · 1 comment
Open
4 tasks done
Tracked by #2911

arm64 test failure with numpy 1.24.2 #2866

mr-c opened this issue Aug 17, 2023 · 1 comment

Comments

@mr-c
Copy link
Contributor

mr-c commented Aug 17, 2023

Description

In Debian, we are seeing a test failure on arm64.

platform linux -- Python 3.11.4, pytest-7.4.0, pluggy-1.2.0

<snip>

__________________________________ test_cross __________________________________

    def test_cross():
        # Test that cross is faster and equal to numpy.cross.
        out = np.zeros(3, dtype=float)
        for _ in range(10):
            vec1 = np.random.random(3)
            vec2 = np.random.random(3)
            cross(out, vec1, vec2)
>           assert_array_equal(out, np.cross(vec1, vec2))

dipy/utils/tests/test_fast_numpy.py:66: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

args = (<built-in function eq>, array([-0.01019207, -0.06892864,  0.11387193]), array([-0.01019207, -0.06892864,  0.11387193]))
kwds = {'err_msg': '', 'header': 'Arrays are not equal', 'strict': False, 'verbose': True}

    @wraps(func)
    def inner(*args, **kwds):
        with self._recreate_cm():
>           return func(*args, **kwds)
E           AssertionError: 
E           Arrays are not equal
E           
E           Mismatched elements: 3 / 3 (100%)
E           Max absolute difference: 1.3877787807814457e-17
E           Max relative difference: 1.0212192572032548e-15
E            x: array([-0.010192, -0.068929,  0.113872])
E            y: array([-0.010192, -0.068929,  0.113872])

https://buildd.debian.org/status/fetch.php?pkg=dipy&arch=arm64&ver=1.7.0-1&stamp=1692105845&raw=0

Way to reproduce

  • Operating system and version: Debian Unstable Kernel: Linux 5.10.0-24-arm64 #1 SMP Debian 5.10.179-5 (2023-08-08) arm64 (aarch64)
  • Python version python3.11 arm64 3.11.4-1
  • dipy version 1.7.0-1
  • dependency version (numpy, scipy, nibabel, h5py, cvxpy, fury)
    • python3-numpy arm64 1:1.24.2-1
    • python3-scipy arm64 1.10.1-2
    • python3-nibabel all 5.1.0-1
    • python3-h5py-serial arm64 3.7.0-8
    • no cvxpy
    • no fury
@skoudoro
Copy link
Member

Thank you for letting us know @mr-c,

we will look into it before the September release

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

No branches or pull requests

2 participants