diff options
Diffstat (limited to 'gr-filter')
-rw-r--r-- | gr-filter/grc/pfb_arb_resampler.xml | 10 | ||||
-rw-r--r-- | gr-filter/lib/interp_fir_filter_XXX_impl.cc.t | 4 |
2 files changed, 11 insertions, 3 deletions
diff --git a/gr-filter/grc/pfb_arb_resampler.xml b/gr-filter/grc/pfb_arb_resampler.xml index f3048000a..774cb9186 100644 --- a/gr-filter/grc/pfb_arb_resampler.xml +++ b/gr-filter/grc/pfb_arb_resampler.xml @@ -9,10 +9,14 @@ <key>pfb_arb_resampler_xxx</key> <import>from gnuradio import filter</import> <import>from gnuradio.filter import firdes</import> - <make>filter.pfb_arb_resampler_$(type)( + <make>filter.pfb.arb_resampler_$(type)( $rrate, - $taps, - $nfilts) +#if $taps() + taps=$taps, +#else + taps=None, +#end if + flt_size=$nfilts) </make> <callback>set_taps($taps)</callback> <param> 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 c9127d737..fea3b1c8e 100644 --- a/gr-filter/lib/interp_fir_filter_XXX_impl.cc.t +++ b/gr-filter/lib/interp_fir_filter_XXX_impl.cc.t @@ -54,6 +54,10 @@ namespace gr { throw std::out_of_range("@IMPL_NAME@: interpolation must be > 0\n"); } + if(taps.size() == 0) { + throw std::runtime_error("@IMPL_NAME@: no filter taps provided.\n"); + } + std::vector<@TAP_TYPE@> dummy_taps; for(unsigned i = 0; i < interpolation; i++) { |