summaryrefslogtreecommitdiff
path: root/gnuradio-examples/python/pfb/interpolate.py
diff options
context:
space:
mode:
authorJosh Blum2011-09-26 12:04:27 -0700
committerJosh Blum2011-09-26 12:04:27 -0700
commit1ff42298b8c5216587ecddcd3a3571def2e5fa21 (patch)
treef06d584ae6196e39829c17b5a9f6d728a03adfd1 /gnuradio-examples/python/pfb/interpolate.py
parent4aa4411f2a3f184760ff5f534eec015f557f80c9 (diff)
parent18201a678610a608a4c952122ce6dc9430e8e2d1 (diff)
downloadgnuradio-1ff42298b8c5216587ecddcd3a3571def2e5fa21.tar.gz
gnuradio-1ff42298b8c5216587ecddcd3a3571def2e5fa21.tar.bz2
gnuradio-1ff42298b8c5216587ecddcd3a3571def2e5fa21.zip
Merge branch 'next' of http://gnuradio.org/git/gnuradio into next
Diffstat (limited to 'gnuradio-examples/python/pfb/interpolate.py')
-rwxr-xr-xgnuradio-examples/python/pfb/interpolate.py23
1 files changed, 15 insertions, 8 deletions
diff --git a/gnuradio-examples/python/pfb/interpolate.py b/gnuradio-examples/python/pfb/interpolate.py
index a7a2522f8..370cf26a7 100755
--- a/gnuradio-examples/python/pfb/interpolate.py
+++ b/gnuradio-examples/python/pfb/interpolate.py
@@ -21,14 +21,21 @@
#
from gnuradio import gr, blks2
-import os
-import scipy, pylab
-from scipy import fftpack
-from pylab import mlab
-import time
-
-#print os.getpid()
-#raw_input()
+import sys, time
+
+try:
+ import scipy
+ from scipy import fftpack
+except ImportError:
+ print "Error: Program requires scipy (see: www.scipy.org)."
+ sys.exit(1)
+
+try:
+ import pylab
+ from pylab import mlab
+except ImportError:
+ print "Error: Program requires matplotlib (see: matplotlib.sourceforge.net)."
+ sys.exit(1)
class pfb_top_block(gr.top_block):
def __init__(self):