summaryrefslogtreecommitdiff
path: root/gnuradio-examples/python/pfb/channelize.py
diff options
context:
space:
mode:
authorJohnathan Corgan2011-09-24 11:19:17 -0700
committerJohnathan Corgan2011-09-24 11:19:17 -0700
commit2e6df0c3084b29648648148b1bd5aeddc63fe00f (patch)
treeb0d55f66ba2c40260a2d9b57ffcce4e10421990d /gnuradio-examples/python/pfb/channelize.py
parent35222394b0515b91d814d8f17df75048782d1238 (diff)
parent1371c92be1ed0a4b371915168eecacd00fc3538c (diff)
downloadgnuradio-2e6df0c3084b29648648148b1bd5aeddc63fe00f.tar.gz
gnuradio-2e6df0c3084b29648648148b1bd5aeddc63fe00f.tar.bz2
gnuradio-2e6df0c3084b29648648148b1bd5aeddc63fe00f.zip
Merge branch 'master' into next
Conflicts: gr-qtgui/apps/usrp_display.py
Diffstat (limited to 'gnuradio-examples/python/pfb/channelize.py')
-rwxr-xr-xgnuradio-examples/python/pfb/channelize.py19
1 files changed, 15 insertions, 4 deletions
diff --git a/gnuradio-examples/python/pfb/channelize.py b/gnuradio-examples/python/pfb/channelize.py
index f845c05c6..999e5d20e 100755
--- a/gnuradio-examples/python/pfb/channelize.py
+++ b/gnuradio-examples/python/pfb/channelize.py
@@ -21,10 +21,21 @@
#
from gnuradio import gr, blks2
-import os, time
-import scipy, pylab
-from scipy import fftpack
-from pylab import mlab
+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):