X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=gnuradio-core%2Fsrc%2Fpython%2Fgnuradio%2Fblks2impl%2Fpfb_channelizer.py;fp=gnuradio-core%2Fsrc%2Fpython%2Fgnuradio%2Fblks2impl%2Fpfb_channelizer.py;h=3ddc1749a7ba87c19e300d36feb61215cd506bfe;hb=2fa7c997559e173c59227ee14a154e4b462d46bd;hp=ecbdd2047660322772c1145548f7b163b71ba616;hpb=3f32342fc5c82d53e7c94afbccb01d38280db733;p=debian%2Fgnuradio diff --git a/gnuradio-core/src/python/gnuradio/blks2impl/pfb_channelizer.py b/gnuradio-core/src/python/gnuradio/blks2impl/pfb_channelizer.py index ecbdd204..3ddc1749 100644 --- a/gnuradio-core/src/python/gnuradio/blks2impl/pfb_channelizer.py +++ b/gnuradio-core/src/python/gnuradio/blks2impl/pfb_channelizer.py @@ -54,6 +54,10 @@ class pfb_channelizer_ccf(gr.hier_block2): made = False print("Warning: set ripple to %.4f dB. If this is a problem, adjust the attenuation or create your own filter taps." % (ripple)) + # Build in an exit strategy; if we've come this far, it ain't working. + if(ripple >= 1.0): + raise RuntimeError("optfir could not generate an appropriate filter.") + self.s2ss = gr.stream_to_streams(gr.sizeof_gr_complex, self._numchans) self.pfb = gr.pfb_channelizer_ccf(self._numchans, self._taps, self._oversample_rate)