commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] r7605 - gnuradio/branches/developers/eb/fg-no-more/gr-


From: eb
Subject: [Commit-gnuradio] r7605 - gnuradio/branches/developers/eb/fg-no-more/gr-howto-write-a-block/doc
Date: Thu, 7 Feb 2008 18:52:46 -0700 (MST)

Author: eb
Date: 2008-02-07 18:52:45 -0700 (Thu, 07 Feb 2008)
New Revision: 7605

Modified:
   
gnuradio/branches/developers/eb/fg-no-more/gr-howto-write-a-block/doc/qa_howto_1.py
Log:
updated or removed more flow_graph/hier_block stuff

Modified: 
gnuradio/branches/developers/eb/fg-no-more/gr-howto-write-a-block/doc/qa_howto_1.py
===================================================================
--- 
gnuradio/branches/developers/eb/fg-no-more/gr-howto-write-a-block/doc/qa_howto_1.py
 2008-02-08 01:42:32 UTC (rev 7604)
+++ 
gnuradio/branches/developers/eb/fg-no-more/gr-howto-write-a-block/doc/qa_howto_1.py
 2008-02-08 01:52:45 UTC (rev 7605)
@@ -6,10 +6,10 @@
 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 @@
         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)
         





reply via email to

[Prev in Thread] Current Thread [Next in Thread]