summaryrefslogtreecommitdiff
path: root/gr-analog/python/qa_plateau_detector_fb.py
diff options
context:
space:
mode:
Diffstat (limited to 'gr-analog/python/qa_plateau_detector_fb.py')
-rwxr-xr-xgr-analog/python/qa_plateau_detector_fb.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/gr-analog/python/qa_plateau_detector_fb.py b/gr-analog/python/qa_plateau_detector_fb.py
index 5f8abc74ec..6f330440ef 100755
--- a/gr-analog/python/qa_plateau_detector_fb.py
+++ b/gr-analog/python/qa_plateau_detector_fb.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
#
@@ -22,6 +22,7 @@
from gnuradio import gr, gr_unittest
import analog_swig as analog
+import blocks_swig as blocks
class qa_plateau_detector_fb (gr_unittest.TestCase):
@@ -36,8 +37,8 @@ class qa_plateau_detector_fb (gr_unittest.TestCase):
test_signal = (0, 1, .2, .4, .6, .8, 1, 1, 1, 1, 1, .8, .6, .4, 1, 0)
expected_sig = (0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0)
# | Center of Plateau
- sink = gr.vector_sink_b()
- self.tb.connect(gr.vector_source_f(test_signal), analog.plateau_detector_fb(5), sink)
+ sink = blocks.vector_sink_b()
+ self.tb.connect(blocks.vector_source_f(test_signal), analog.plateau_detector_fb(5), sink)
self.tb.run ()
self.assertEqual(expected_sig, sink.data())