diff options
author | Aaron LI <aly@aaronly.me> | 2018-07-23 22:23:05 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2018-07-23 22:23:05 +0800 |
commit | dac40d165db737aafc5f11a601477a5add0f7710 (patch) | |
tree | 4c890c6b3b1b70222752b61a9d88ce46b38a4337 /astro/spectrogram.py | |
parent | 4e2441d44eff1b693acaad1564d1233a8cb2ef66 (diff) | |
download | atoolbox-dac40d165db737aafc5f11a601477a5add0f7710.tar.bz2 |
astro/spectrogram.py: Fix the wrong argument in fftshift()
Diffstat (limited to 'astro/spectrogram.py')
-rwxr-xr-x | astro/spectrogram.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/astro/spectrogram.py b/astro/spectrogram.py index 2edc09a..6121544 100755 --- a/astro/spectrogram.py +++ b/astro/spectrogram.py @@ -61,7 +61,7 @@ class Spectrogram: def calc_fourier(self): logger.info('Calculating FFT ...') - z = fftpack.fftshift(fftpack.fft(self.data, axis=0), axis=0) + z = fftpack.fftshift(fftpack.fft(self.data, axis=0), axes=0) return (np.abs(z), np.real(z), np.imag(z)) |