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

scipy deprecation warning #50

Open
SaOgaz opened this issue Aug 16, 2018 · 2 comments
Open

scipy deprecation warning #50

SaOgaz opened this issue Aug 16, 2018 · 2 comments

Comments

@SaOgaz
Copy link
Contributor

SaOgaz commented Aug 16, 2018

In [101]: stisnoise('o6ih10060_crj.fits', outfile='o6ih10060_fcrj2.fits',
...: window=[0.5, 0.5, 0.1])
...:
Target: V1016-CYG, Amp: D, Gain: 1
....lib/python3.5/site-packages/scipy/signal/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()

@stscirij
Copy link
Contributor

stscirij commented Aug 16, 2018

Not sure why this warning is being thrown, the offending function (from https://github.com/scipy/scipy/blob/master/scipy/signal/signaltools.py) is:

``
def _reverse_and_conj(x):
"""
Reverse array x in all dimensions and perform the complex conjugate
"""
reverse = (slice(None, None, -1),) * x.ndim
return x[reverse].conj()

``
Any array x that I put in (0, 1, 2, or 3 dimensional) makes 'reverse' a tuple and doesn't give the warning.

@stscirij
Copy link
Contributor

This is very old, are there perhaps astropy alternatives? The only functions being called from the scipy.signal package are 'correlate' and 'boxcar'

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