diff options
author | Martin Braun <martin.braun@ettus.com> | 2018-11-13 15:28:08 -0800 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2018-11-15 15:40:37 -0800 |
commit | c40ff36851131a047e82ccabb4ec175eb6cd96e2 (patch) | |
tree | 637ef1129ea5507e79eb8fd9118ebc2c4305ab2d /gr-utils/python | |
parent | 3f6ad6a74ce92915e1daac763a68c323846ca71c (diff) |
utils: Fix bug in plot_fft_base that will choke on numpy types
Diffstat (limited to 'gr-utils/python')
-rw-r--r-- | gr-utils/python/utils/plot_fft_base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gr-utils/python/utils/plot_fft_base.py b/gr-utils/python/utils/plot_fft_base.py index ec26f059f9..1b6eb72910 100644 --- a/gr-utils/python/utils/plot_fft_base.py +++ b/gr-utils/python/utils/plot_fft_base.py @@ -103,7 +103,7 @@ class plot_fft_base(object): def calc_freq(self, time, sample_rate): N = len(time) - Fs = 1.0 / (time.max( - time.min())) + Fs = 1.0 / (max(time) - min(time)) Fn = 0.5 * sample_rate freq = numpy.array([-Fn + i*Fs for i in range(N)]) return freq |