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

Deprecation warnings from numpy fft #230

Open
asmeurer opened this issue Jan 17, 2024 · 0 comments
Open

Deprecation warnings from numpy fft #230

asmeurer opened this issue Jan 17, 2024 · 0 comments

Comments

@asmeurer
Copy link
Member

The numpy.array_api has several test failures due to data-apis/array-api#720. But additionally, there are also these warnings, which should be looked into:

array_api_tests/test_fft.py::test_fftn
  /Users/aaronmeurer/Documents/numpy/numpy/fft/_pocketfft.py:857: DeprecationWarning: `axes` should not be `None` if `s` is not `None` (Deprecated in NumPy 2.0). In a future version of NumPy, this will raise an error and `s[i]` will correspond to the size along the transformed axis specified by `axes[i]`. To retain current behaviour, pass a sequence [0, ..., k-1] to `axes` for an array of dimension k.
    return _raw_fftnd(a, s, axes, fft, norm)

array_api_tests/test_fft.py: 16 warnings
  /Users/aaronmeurer/Documents/numpy/numpy/array_api/fft.py:190: DeprecationWarning: `axes` should not be `None` if `s` is not `None` (Deprecated in NumPy 2.0). In a future version of NumPy, this will raise an error and `s[i]` will correspond to the size along the transformed axis specified by `axes[i]`. To retain current behaviour, pass a sequence [0, ..., k-1] to `axes` for an array of dimension k.
    res = Array._new(np.fft.irfftn(x._array, s=s, axes=axes, norm=norm))

We should also double check if the standard is correct here.

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

No branches or pull requests

1 participant