commit-gnuradio
[Top][All Lists]
Advanced

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

[Commit-gnuradio] [gnuradio] 07/11: filter: fixed an issue with filter d


From: git
Subject: [Commit-gnuradio] [gnuradio] 07/11: filter: fixed an issue with filter delays for interp and rational_resampler filters.
Date: Thu, 9 Jan 2014 21:52:40 +0000 (UTC)

This is an automated email from the git hooks/post-receive script.

trondeau pushed a commit to branch maint
in repository gnuradio.

commit 021f728072cefa5dbc19e42f5b2a557bafeadcc8
Author: Tom Rondeau <address@hidden>
Date:   Mon Jan 6 12:16:42 2014 -0500

    filter: fixed an issue with filter delays for interp and rational_resampler 
filters.
---
 gr-filter/lib/interp_fir_filter_XXX_impl.cc.t       | 2 +-
 gr-filter/lib/rational_resampler_base_XXX_impl.cc.t | 2 +-
 gr-filter/python/filter/qa_interp_fir_filter.py     | 2 +-
 gr-filter/python/filter/qa_rational_resampler.py    | 4 ++--
 4 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/gr-filter/lib/interp_fir_filter_XXX_impl.cc.t 
b/gr-filter/lib/interp_fir_filter_XXX_impl.cc.t
index d9ba509..1a3a49e 100644
--- a/gr-filter/lib/interp_fir_filter_XXX_impl.cc.t
+++ b/gr-filter/lib/interp_fir_filter_XXX_impl.cc.t
@@ -86,7 +86,7 @@ namespace gr {
       if(n > 0) {
        n = interpolation() - n;
        while(n-- > 0) {
-         d_new_taps.insert(d_new_taps.begin(), 0);
+         d_new_taps.insert(d_new_taps.end(), 0);
        }
       }
 
diff --git a/gr-filter/lib/rational_resampler_base_XXX_impl.cc.t 
b/gr-filter/lib/rational_resampler_base_XXX_impl.cc.t
index 29f4e11..755b267 100644
--- a/gr-filter/lib/rational_resampler_base_XXX_impl.cc.t
+++ b/gr-filter/lib/rational_resampler_base_XXX_impl.cc.t
@@ -93,7 +93,7 @@ namespace gr {
       if(n > 0) {
        n = interpolation() - n;
        while(n-- > 0) {
-         d_new_taps.insert(d_new_taps.begin(), 0);
+         d_new_taps.insert(d_new_taps.end(), 0);
        }
       }
 
diff --git a/gr-filter/python/filter/qa_interp_fir_filter.py 
b/gr-filter/python/filter/qa_interp_fir_filter.py
index 089d083..536ab1b 100755
--- a/gr-filter/python/filter/qa_interp_fir_filter.py
+++ b/gr-filter/python/filter/qa_interp_fir_filter.py
@@ -36,7 +36,7 @@ class test_interp_fir_filter(gr_unittest.TestCase):
         taps = [1, 10, 100, 1000, 10000]
         src_data = (0, 2, 3, 5, 7, 11, 13, 17)
         interpolation = 3
-        xr = (0,0,0,0,
+        xr = (0,0,0,
               2,20,200,2003,20030,
               300,3005,30050,
               500,5007,50070,
diff --git a/gr-filter/python/filter/qa_rational_resampler.py 
b/gr-filter/python/filter/qa_rational_resampler.py
index 3dbe636..a03673d 100755
--- a/gr-filter/python/filter/qa_rational_resampler.py
+++ b/gr-filter/python/filter/qa_rational_resampler.py
@@ -98,13 +98,13 @@ class test_rational_resampler (gr_unittest.TestCase):
         taps = [1, 10, 100, 1000, 10000]
         src_data = (0, 2, 3, 5, 7, 11, 13, 17)
         interpolation = 3
-        xr = (0,2,20,200,2003,20030,
+        xr = (2,20,200,2003,20030,
               300,3005,30050,
               500,5007,50070,
               700,7011,70110,
               1100,11013,110130,
               1300,13017,130170,
-              1700.0,17000.0,170000.0)
+              1700.0,17000.0,170000.0, 0.0)
         expected_result = tuple([float(x) for x in xr])
 
        tb = gr.top_block()



reply via email to

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