From 65a3df1665a8286c82307828891577613a37d70a Mon Sep 17 00:00:00 2001
From: Marcus Müller <marcus@hostalia.de>
Date: Sat, 25 Aug 2018 01:23:10 +0200
Subject: remove completely unused scipy from gr-util plot apps

---
 gr-utils/python/utils/gr_plot_int | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

(limited to 'gr-utils/python/utils/gr_plot_int')

diff --git a/gr-utils/python/utils/gr_plot_int b/gr-utils/python/utils/gr_plot_int
index b4051fa15f..aefabcda63 100755
--- a/gr-utils/python/utils/gr_plot_int
+++ b/gr-utils/python/utils/gr_plot_int
@@ -20,15 +20,11 @@
 # Boston, MA 02110-1301, USA.
 #
 
-try:
-    import scipy
-except ImportError:
-    print("Please install SciPy to run this script (http://www.scipy.org/)")
-    raise SystemExit(1)
-
 from argparse import ArgumentParser
 from gnuradio.plot_data import plot_data
 
+import numpy
+
 def main():
     description = "Takes a GNU Radio integer binary file and displays the samples versus time. You can set the block size to specify how many points to read in at a time and the start position in the file. By default, the system assumes a sample rate of 1, so in time, each sample is plotted versus the sample number. To set a true time axis, set the sample rate (-R or --sample-rate) to the sample rate used when capturing the samples."
 
@@ -44,7 +40,7 @@ def main():
 
     args = parser.parse_args()
 
-    datatype=scipy.int32
+    datatype=numpy.int32
     dc = plot_data(datatype, args.file, args)
 
 if __name__ == "__main__":
-- 
cgit v1.2.3