summaryrefslogtreecommitdiff
path: root/gr-howto-write-a-block
diff options
context:
space:
mode:
authoreb2008-02-08 04:36:24 +0000
committereb2008-02-08 04:36:24 +0000
commit05005e3d3fad3c9baee9906714510b5d12e0fa6f (patch)
tree6f3785d80ac03b213dce984c9eb14be9b4c86571 /gr-howto-write-a-block
parent42ad2adb86981f4488edbe33169683f787b807c3 (diff)
downloadgnuradio-05005e3d3fad3c9baee9906714510b5d12e0fa6f.tar.gz
gnuradio-05005e3d3fad3c9baee9906714510b5d12e0fa6f.tar.bz2
gnuradio-05005e3d3fad3c9baee9906714510b5d12e0fa6f.zip
Removed gr.flow_graph, gr.hier_block and friends. From here on out
all work on the trunk must use gr.top_block and gr.hier_block2. Merged eb/fg-no-more -r7602:7606 into trunk. git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@7607 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gr-howto-write-a-block')
-rwxr-xr-xgr-howto-write-a-block/doc/qa_howto_1.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/gr-howto-write-a-block/doc/qa_howto_1.py b/gr-howto-write-a-block/doc/qa_howto_1.py
index aa84908d4..3173110f8 100755
--- a/gr-howto-write-a-block/doc/qa_howto_1.py
+++ b/gr-howto-write-a-block/doc/qa_howto_1.py
@@ -6,10 +6,10 @@ import howto
class qa_howto (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_001_square_ff (self):
src_data = (-3, 4, -5.5, 2, 3)
@@ -17,9 +17,9 @@ class qa_howto (gr_unittest.TestCase):
src = gr.vector_source_f (src_data)
sqr = howto.square_ff ()
dst = gr.vector_sink_f ()
- self.fg.connect (src, sqr)
- self.fg.connect (sqr, dst)
- self.fg.run ()
+ self.tb.connect (src, sqr)
+ self.tb.connect (sqr, dst)
+ self.tb.run ()
result_data = dst.data ()
self.assertFloatTuplesAlmostEqual (expected_result, result_data, 6)