summaryrefslogtreecommitdiff
path: root/gr-analog/python/analog/qa_fmdet.py
diff options
context:
space:
mode:
Diffstat (limited to 'gr-analog/python/analog/qa_fmdet.py')
-rwxr-xr-xgr-analog/python/analog/qa_fmdet.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/gr-analog/python/analog/qa_fmdet.py b/gr-analog/python/analog/qa_fmdet.py
index 3ffd88b76a..a9c88c3b95 100755
--- a/gr-analog/python/analog/qa_fmdet.py
+++ b/gr-analog/python/analog/qa_fmdet.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python
#
-# Copyright 2012 Free Software Foundation, Inc.
+# Copyright 2012,2013 Free Software Foundation, Inc.
#
# This file is part of GNU Radio
#
@@ -20,9 +20,7 @@
# Boston, MA 02110-1301, USA.
#
-import math
-
-from gnuradio import gr, gr_unittest, analog
+from gnuradio import gr, gr_unittest, analog, blocks
class test_fmdet_cf(gr_unittest.TestCase):
@@ -63,9 +61,9 @@ class test_fmdet_cf(gr_unittest.TestCase):
def est_fmdet_cf_002(self):
N = 100
src = analog.sig_source_c(1, analog.GR_SIN_WAVE, 0.2, 1)
- head = gr.head(gr.sizeof_gr_complex, N)
+ head = blocks.head(gr.sizeof_gr_complex, N)
op = analog.fmdet_cf(1, 0.1, 0.3, 0.1)
- dst = gr.vector_sink_f()
+ dst = blocks.vector_sink_f()
self.tb.connect(src, head, op)
self.tb.connect(op, dst)