Imported Upstream version 3.2.2
[debian/gnuradio] / gnuradio-core / src / python / gnuradio / gr / qa_hilbert.py
index a06ae154fcc8d657c51b9e327784472ec103897d..817ba94081d59674f7423c787f2d20b0098c3fb5 100755 (executable)
@@ -1,6 +1,6 @@
 #!/usr/bin/env python
 #
-# Copyright 2004 Free Software Foundation, Inc.
+# Copyright 2004,2007 Free Software Foundation, Inc.
 # 
 # This file is part of GNU Radio
 # 
@@ -26,13 +26,13 @@ import math
 class test_sig_source (gr_unittest.TestCase):
 
     def setUp (self):
-        self.fg = gr.flow_graph ()
+        self.tb = gr.top_block ()
 
     def tearDown (self):
-        self.fg = None
+        self.tb = None
 
     def test_hilbert (self):
-        fg = self.fg
+        tb = self.tb
         ntaps = 51
         sampling_freq = 100
 
@@ -105,10 +105,10 @@ class test_sig_source (gr_unittest.TestCase):
         head = gr.head (gr.sizeof_float, int (ntaps + sampling_freq * 0.10))
         hilb = gr.hilbert_fc (ntaps)
         dst1 = gr.vector_sink_c ()
-        fg.connect (src1, head)
-        fg.connect (head, hilb)
-        fg.connect (hilb, dst1)
-        fg.run ()
+        tb.connect (src1, head)
+        tb.connect (head, hilb)
+        tb.connect (hilb, dst1)
+        tb.run ()
         dst_data = dst1.data ()
         self.assertComplexTuplesAlmostEqual (expected_result, dst_data, 5)