sunkit-image icon indicating copy to clipboard operation
sunkit-image copied to clipboard

Align array compliance with numpy 2.0

Open CyclingNinja opened this issue 1 year ago • 0 comments

Describe the bug

2D arrays will be deprecated in numpy 2.0 will now need to use 3D arrays.

To Reproduce

Run the sunkit-image test suite

Screenshots

         if a.shape[-1] == 2 or b.shape[-1] == 2:
            # Deprecated in NumPy 2.0, 2023-09-26
>           warnings.warn(
                "Arrays of 2-dimensional vectors are deprecated. Use arrays of "
                "3-dimensional vectors instead. (deprecated in NumPy 2.0)",
                DeprecationWarning, stacklevel=2
            )
E           DeprecationWarning: Arrays of 2-dimensional vectors are deprecated. Use arrays of 3-dimensional vectors instead. (deprecated in NumPy 2.0)

System Details

See tox environment in home directory

Installation method

No response

CyclingNinja avatar Jun 17 '24 10:06 CyclingNinja