X-Git-Url: https://git.gag.com/?a=blobdiff_plain;ds=sidebyside;f=gnuradio-core%2Fsrc%2Fpython%2Fgnuradio%2Fgr%2Fqa_hilbert.py;h=817ba94081d59674f7423c787f2d20b0098c3fb5;hb=ea29b08aeb54227e6628f655ccfdb96fe4d8c378;hp=a06ae154fcc8d657c51b9e327784472ec103897d;hpb=09a1e803a9e6587c78d20cdf16891e5295874668;p=debian%2Fgnuradio diff --git a/gnuradio-core/src/python/gnuradio/gr/qa_hilbert.py b/gnuradio-core/src/python/gnuradio/gr/qa_hilbert.py index a06ae154..817ba940 100755 --- a/gnuradio-core/src/python/gnuradio/gr/qa_hilbert.py +++ b/gnuradio-core/src/python/gnuradio/gr/qa_hilbert.py @@ -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)