From dac40d165db737aafc5f11a601477a5add0f7710 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Mon, 23 Jul 2018 22:23:05 +0800 Subject: astro/spectrogram.py: Fix the wrong argument in fftshift() --- astro/spectrogram.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) -- cgit v1.2.2