diff options
author | Johnathan Corgan | 2011-09-24 11:19:17 -0700 |
---|---|---|
committer | Johnathan Corgan | 2011-09-24 11:19:17 -0700 |
commit | 2e6df0c3084b29648648148b1bd5aeddc63fe00f (patch) | |
tree | b0d55f66ba2c40260a2d9b57ffcce4e10421990d /gnuradio-examples/python/pfb/fmtest.py | |
parent | 35222394b0515b91d814d8f17df75048782d1238 (diff) | |
parent | 1371c92be1ed0a4b371915168eecacd00fc3538c (diff) | |
download | gnuradio-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/fmtest.py')
-rwxr-xr-x | gnuradio-examples/python/pfb/fmtest.py | 42 |
1 files changed, 35 insertions, 7 deletions
diff --git a/gnuradio-examples/python/pfb/fmtest.py b/gnuradio-examples/python/pfb/fmtest.py index 97df0e0f5..635ee4e9e 100755 --- a/gnuradio-examples/python/pfb/fmtest.py +++ b/gnuradio-examples/python/pfb/fmtest.py @@ -1,14 +1,42 @@ #!/usr/bin/env python # +# Copyright 2009 Free Software Foundation, Inc. +# +# This file is part of GNU Radio +# +# GNU Radio is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3, or (at your option) +# any later version. +# +# GNU Radio is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with GNU Radio; see the file COPYING. If not, write to +# the Free Software Foundation, Inc., 51 Franklin Street, +# Boston, MA 02110-1301, USA. +# + +from gnuradio import gr, blks2 +import sys, math, 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 +except ImportError: + print "Error: Program requires matplotlib (see: matplotlib.sourceforge.net)." + sys.exit(1) -from gnuradio import gr, eng_notation -from gnuradio import blks2 -from gnuradio.eng_option import eng_option -from optparse import OptionParser -import math, time, sys, scipy, pylab -from scipy import fftpack - class fmtx(gr.hier_block2): def __init__(self, lo_freq, audio_rate, if_rate): |