commit-gnuradio
[Top][All Lists]
Advanced

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

[Commit-gnuradio] r7035 - gnuradio/branches/developers/jcorgan/t202/gnur


From: jcorgan
Subject: [Commit-gnuradio] r7035 - gnuradio/branches/developers/jcorgan/t202/gnuradio-core/src/python/gnuradio/gr
Date: Tue, 27 Nov 2007 08:25:08 -0700 (MST)

Author: jcorgan
Date: 2007-11-27 08:25:07 -0700 (Tue, 27 Nov 2007)
New Revision: 7035

Modified:
   
gnuradio/branches/developers/jcorgan/t202/gnuradio-core/src/python/gnuradio/gr/qa_max.py
   
gnuradio/branches/developers/jcorgan/t202/gnuradio-core/src/python/gnuradio/gr/qa_unpack_k_bits.py
Log:
Work in progress.

Modified: 
gnuradio/branches/developers/jcorgan/t202/gnuradio-core/src/python/gnuradio/gr/qa_max.py
===================================================================
--- 
gnuradio/branches/developers/jcorgan/t202/gnuradio-core/src/python/gnuradio/gr/qa_max.py
    2007-11-27 15:14:21 UTC (rev 7034)
+++ 
gnuradio/branches/developers/jcorgan/t202/gnuradio-core/src/python/gnuradio/gr/qa_max.py
    2007-11-27 15:25:07 UTC (rev 7035)
@@ -27,11 +27,11 @@
 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_001(self):
@@ -45,8 +45,8 @@
         dst = gr.vector_sink_f()
 
 
-        self.fg.connect(src, s2v, op, dst)
-        self.fg.run()
+        self.tb.connect(src, s2v, op, dst)
+        self.tb.run()
         result_data = dst.data()
         self.assertEqual(expected_result, result_data)
 


Property changes on: 
gnuradio/branches/developers/jcorgan/t202/gnuradio-core/src/python/gnuradio/gr/qa_max.py
___________________________________________________________________
Name: svn:executable
   + *

Modified: 
gnuradio/branches/developers/jcorgan/t202/gnuradio-core/src/python/gnuradio/gr/qa_unpack_k_bits.py
===================================================================
--- 
gnuradio/branches/developers/jcorgan/t202/gnuradio-core/src/python/gnuradio/gr/qa_unpack_k_bits.py
  2007-11-27 15:14:21 UTC (rev 7034)
+++ 
gnuradio/branches/developers/jcorgan/t202/gnuradio-core/src/python/gnuradio/gr/qa_unpack_k_bits.py
  2007-11-27 15:25:07 UTC (rev 7035)
@@ -26,10 +26,10 @@
 class test_unpack(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(self):
         src_data =         (1,0,1,1,0,1,1,0)
@@ -37,8 +37,8 @@
         src = gr.vector_source_b(src_data,False)
         op = gr.unpack_k_bits_bb(1)
         dst = gr.vector_sink_b()
-        self.fg.connect(src, op, dst)
-        self.fg.run()
+        self.tb.connect(src, op, dst)
+        self.tb.run()
         self.assertEqual(expected_results, dst.data())
 
     def test_002(self):
@@ -47,8 +47,8 @@
         src = gr.vector_source_b(src_data,False)
         op = gr.unpack_k_bits_bb(2)
         dst = gr.vector_sink_b()
-        self.fg.connect(src, op, dst)
-        self.fg.run()
+        self.tb.connect(src, op, dst)
+        self.tb.run()
         self.assertEqual(expected_results, dst.data())
 
 





reply via email to

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