Revision 6246efbe gnuradio-core/src/python/gnuradio/blks2impl/pfb_arb_resampler.py
| b/gnuradio-core/src/python/gnuradio/blks2impl/pfb_arb_resampler.py | ||
|---|---|---|
| 31 | 31 |
streams. This block is provided to be consistent with the interface to the |
| 32 | 32 |
other PFB block. |
| 33 | 33 |
''' |
| 34 |
def __init__(self, rate, taps, flt_size=32):
|
|
| 34 |
def __init__(self, rate, taps=None, flt_size=32, atten=80):
|
|
| 35 | 35 |
gr.hier_block2.__init__(self, "pfb_arb_resampler_ccf", |
| 36 | 36 |
gr.io_signature(1, 1, gr.sizeof_gr_complex), # Input signature |
| 37 | 37 |
gr.io_signature(1, 1, gr.sizeof_gr_complex)) # Output signature |
| 38 | 38 |
|
| 39 | 39 |
self._rate = rate |
| 40 |
self._taps = taps |
|
| 41 | 40 |
self._size = flt_size |
| 42 | 41 |
|
| 42 |
if taps is not None: |
|
| 43 |
self._taps = taps |
|
| 44 |
else: |
|
| 45 |
# Create a filter that covers the full bandwidth of the input signal |
|
| 46 |
bw = 0.5 |
|
| 47 |
tb = 0.1 |
|
| 48 |
self._taps = gr.firdes.low_pass_2(self._size, self._size, bw, tb, atten) |
|
| 49 |
|
|
| 43 | 50 |
self.pfb = gr.pfb_arb_resampler_ccf(self._rate, self._taps, self._size) |
| 44 | 51 |
|
| 45 | 52 |
self.connect(self, self.pfb) |
Also available in: Unified diff