question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

signaltools.py:491: FutureWarning: Using a non-tuple sequence for multidimensional indexing is deprecated

See original GitHub issue

I 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:closed
  • Created 5 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

5reactions
larsonercommented, Jul 29, 2018

This should be fixed by #8944 and will be out with 1.2.0

0reactions
bollakingcommented, Apr 17, 2019

Apologies, had a mix up with my environments I was still on 1.1.0

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found