signaltools.py:491: FutureWarning: Using a non-tuple sequence for multidimensional indexing is deprecated
See original GitHub issueI am trying to use different functions from scipy.signal (like wiener, find_peaks). Results are correct but I am getting warning:
signaltools.py:491: FutureWarning: Using a non-tuple sequence for multidimensional indexing is deprecated; use arr[tuple(seq)] instead of arr[seq]. In the future this will be interpreted as an array index, arr[np.array(seq)], which will result either in an error or a different result.
return x[reverse].conj()
Reproducing code example:
data = somedata
vdistance = 20
vnoise = None
indexes2, _ = scipy.signal.find_peaks(data, prominence=vprominence, distance=vdistance)
z_f2 = scipy.signal.wiener(z, mysize=vdistance * 30, noise=vnoise)
Error message:
signaltools.py:491: FutureWarning: Using a non-tuple sequence for multidimensional indexing is deprecated; use `arr[tuple(seq)]` instead of `arr[seq]`. In the future this will be interpreted as an array index, `arr[np.array(seq)]`, which will result either in an error or a different result.
return x[reverse].conj()
Scipy/Numpy/Python version information:
1.1.0 1.15.0 sys.version_info(major=3, minor=6, micro=6, releaselevel='final', serial=0)
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Using a non-tuple sequence for multidimensional indexing is ...
No, the problem is not the updated version of numpy. The warning is new in numpy and signals a future deprecation, so you...
Read more >Using a non-tuple sequence for multidimensional indexing is ...
Pandas : FutureWarning : Using a non-tuple sequence for multidimensional indexing is deprecated use `arr[tuple(seq)]` [ Beautify Your ...
Read more >Autocorrelation method | Kaggle
Explore and run machine learning code with Kaggle Notebooks | Using data from ... Using a non-tuple sequence for multidimensional indexing is deprecated; ......
Read more >CSE 252A Computer Vision I Fall 2018 - Assignment 2
... FutureWarning: Using a non-tuple sequence for multidimensional indexing is deprecated; use `arr[tuple(seq)]` instead of `arr[seq]`.
Read more >FutureWarning: Using a non-tuple seque.. - W3coded.com
FutureWarning : Using a non-tuple sequence for multidimensional indexing is deprecated use `arr[tuple(seq)]` instead of `arr[seq]` python,tuple,se...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

This should be fixed by #8944 and will be out with 1.2.0
Apologies, had a mix up with my environments I was still on 1.1.0