summaryrefslogtreecommitdiff
path: root/gr-filter/python
diff options
context:
space:
mode:
authorTom Rondeau2012-06-10 19:35:55 -0400
committerTom Rondeau2012-06-10 22:35:59 -0400
commit227448e247ba720b87b99e1b9382cd3737241ab3 (patch)
treec466e391fb6391b9020457486f852f6f86c6fd20 /gr-filter/python
parent14532d8da0f40f2b58595bd7e217004bdbfc90e3 (diff)
downloadgnuradio-227448e247ba720b87b99e1b9382cd3737241ab3.tar.gz
gnuradio-227448e247ba720b87b99e1b9382cd3737241ab3.tar.bz2
gnuradio-227448e247ba720b87b99e1b9382cd3737241ab3.zip
filter: working aligned taps loads for regular and decimating filter.
Has working QA code but needs significant performance improvements.
Diffstat (limited to 'gr-filter/python')
-rwxr-xr-xgr-filter/python/qa_fir_filter.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/gr-filter/python/qa_fir_filter.py b/gr-filter/python/qa_fir_filter.py
index 38bfd9ea5..93974bb89 100755
--- a/gr-filter/python/qa_fir_filter.py
+++ b/gr-filter/python/qa_fir_filter.py
@@ -41,6 +41,19 @@ class test_filter(gr_unittest.TestCase):
result_data = dst.data()
self.assertFloatTuplesAlmostEqual(expected_data, result_data, 5)
+ def test_fir_filter_fff_002(self):
+ src_data = 10*[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
+ expected_data = [0.0,] + 4*[3.5, 7.5, 1.5, 5.5, 4.5,] + [3.5, 7.5, 1.5, 5.5]
+ src = gr.vector_source_f(src_data)
+ op = filter.fir_filter_fff(4, [0.5, 0.5])
+ dst = gr.vector_sink_f()
+ self.tb.connect(src, op, dst)
+ self.tb.run()
+ result_data = dst.data()
+ print result_data
+ print expected_data
+ self.assertFloatTuplesAlmostEqual(expected_data, result_data, 5)
+
def test_fir_filter_ccf_001(self):
src_data = [1+1j, 2+2j, 3+3j, 4+4j]
expected_data = [0.5+0.5j, 1.5+1.5j, 2.5+2.5j, 3.5+3.5j]