aboutsummaryrefslogtreecommitdiffstats
path: root/astro
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2018-07-23 22:23:05 +0800
committerAaron LI <aly@aaronly.me>2018-07-23 22:23:05 +0800
commitdac40d165db737aafc5f11a601477a5add0f7710 (patch)
tree4c890c6b3b1b70222752b61a9d88ce46b38a4337 /astro
parent4e2441d44eff1b693acaad1564d1233a8cb2ef66 (diff)
downloadatoolbox-dac40d165db737aafc5f11a601477a5add0f7710.tar.bz2
astro/spectrogram.py: Fix the wrong argument in fftshift()
Diffstat (limited to 'astro')
-rwxr-xr-xastro/spectrogram.py2
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))