sunkit-image
sunkit-image copied to clipboard
Align array compliance with numpy 2.0
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