You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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()
The text was updated successfully, but these errors were encountered:
``
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.
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 ofarr[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()
The text was updated successfully, but these errors were encountered: