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

Future warnings raised #30

Open
m-mandel opened this issue Jun 22, 2022 · 1 comment
Open

Future warnings raised #30

m-mandel opened this issue Jun 22, 2022 · 1 comment

Comments

@m-mandel
Copy link

Hi,
I'm running stoi(signal1, signal2, sr, extended=True)
where signal1 and signal2 are both numpy.ndarray

and I'm getting the following future warning:
/usr/lib/python3/dist-packages/scipy/signal/signaltools.py:2383: 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 y[keep]

Any idea how to avoid this from happening?

Thanks

@mpariente
Copy link
Owner

Thanks for the issue.

Probably by returning y[tuple(keep)], do you want to submit a PR? Thanks !

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

2 participants