diff options
author | Christophe Seguinot <christophe.seguinot@univ-lille.fr> | 2021-02-16 19:10:16 +0100 |
---|---|---|
committer | mormj <34754695+mormj@users.noreply.github.com> | 2021-02-18 06:58:25 -0500 |
commit | 80d96134f29bd90eaa9df62989365d095bbfc302 (patch) | |
tree | 5ffa73ccf9c7f0d9315b4be3a3203aad2fbdf447 /gr-utils/plot_tools/plot_fft_base.py | |
parent | 15c86a13d974e673903ea0c6bac02157aeb9f50a (diff) |
numpy: Fix fftpack references
Signed-off-by: Christophe Seguinot <christophe.seguinot@univ-lille.fr>
Diffstat (limited to 'gr-utils/plot_tools/plot_fft_base.py')
-rw-r--r-- | gr-utils/plot_tools/plot_fft_base.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gr-utils/plot_tools/plot_fft_base.py b/gr-utils/plot_tools/plot_fft_base.py index 9cfb0f2ec4..9fa3611e14 100644 --- a/gr-utils/plot_tools/plot_fft_base.py +++ b/gr-utils/plot_tools/plot_fft_base.py @@ -10,7 +10,6 @@ import numpy -from numpy.fft import fftpack try: from pylab import Button, connect, draw, figure, figtext, get_current_fig_manager, show, rcParams, ceil @@ -85,7 +84,7 @@ class plot_fft_base(object): def dofft(self, iq): N = len(iq) - iq_fft = numpy.fft.fftshift(fftpack.fft(iq)) # fft and shift axis + iq_fft = numpy.fft.fftshift(numpy.fft.fft(iq)) # fft and shift axis iq_fft = 20*numpy.log10(abs((iq_fft+1e-15) / N)) # convert to decibels, adjust power # adding 1e-15 (-300 dB) to protect against value errors if an item in iq_fft is 0 return iq_fft |