commit-gnuradio
[Top][All Lists]
Advanced

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

[Commit-gnuradio] r8569 - gnuradio/trunk/gnuradio-core/src/python/gnurad


From: jcorgan
Subject: [Commit-gnuradio] r8569 - gnuradio/trunk/gnuradio-core/src/python/gnuradio/gr
Date: Tue, 10 Jun 2008 10:13:10 -0600 (MDT)

Author: jcorgan
Date: 2008-06-10 10:13:08 -0600 (Tue, 10 Jun 2008)
New Revision: 8569

Modified:
   gnuradio/trunk/gnuradio-core/src/python/gnuradio/gr/Makefile.am
   gnuradio/trunk/gnuradio-core/src/python/gnuradio/gr/qa_repeat.py
Log:
Fixes ticket:246

Modified: gnuradio/trunk/gnuradio-core/src/python/gnuradio/gr/Makefile.am
===================================================================
--- gnuradio/trunk/gnuradio-core/src/python/gnuradio/gr/Makefile.am     
2008-06-10 15:48:12 UTC (rev 8568)
+++ gnuradio/trunk/gnuradio-core/src/python/gnuradio/gr/Makefile.am     
2008-06-10 16:13:08 UTC (rev 8569)
@@ -91,7 +91,7 @@
        qa_single_pole_iir.py           \
        qa_single_pole_iir_cc.py        \
        qa_skiphead.py                  \
-       qa_unpack_k_bits.py             
+       qa_unpack_k_bits.py             \
+       qa_repeat.py
 
-
 CLEANFILES = *.pyc

Modified: gnuradio/trunk/gnuradio-core/src/python/gnuradio/gr/qa_repeat.py
===================================================================
--- gnuradio/trunk/gnuradio-core/src/python/gnuradio/gr/qa_repeat.py    
2008-06-10 15:48:12 UTC (rev 8568)
+++ gnuradio/trunk/gnuradio-core/src/python/gnuradio/gr/qa_repeat.py    
2008-06-10 16:13:08 UTC (rev 8569)
@@ -32,8 +32,11 @@
         self.tb = None
 
     def test_001_float(self):
-       src_data = [1.0, 2.0, 3.0]
-       dst_data = [1.0, 1.0, 1.0, 2.0, 2.0, 2.0, 3.0, 3.0, 3.0]
+       src_data = [n*1.0 for n in range(100)];
+       dst_data = []
+       for n in range(100):
+           dst_data += [1.0*n, 1.0*n, 1.0*n]
+           
        src = gr.vector_source_f(src_data)
        rpt = gr.repeat(gr.sizeof_float, 3)
        dst = gr.vector_sink_f()





reply via email to

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