From c40ff36851131a047e82ccabb4ec175eb6cd96e2 Mon Sep 17 00:00:00 2001
From: Martin Braun <martin.braun@ettus.com>
Date: Tue, 13 Nov 2018 15:28:08 -0800
Subject: utils: Fix bug in plot_fft_base that will choke on numpy types

---
 gr-utils/python/utils/plot_fft_base.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'gr-utils/python/utils/plot_fft_base.py')

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
-- 
cgit v1.2.3