diff options
author | Josh Morman <jmorman@perspectalabs.com> | 2020-12-17 11:47:51 -0500 |
---|---|---|
committer | Marcus Müller <marcus@hostalia.de> | 2020-12-18 22:36:14 +0100 |
commit | 96d00b4cbd4d1607f1b549d3e65e5ea3c19b876b (patch) | |
tree | c463b9d5304a5df7bc4a820e9c7835a3ef714f74 /gr-filter/examples | |
parent | a94c4f228750213c20ea51a3e9a31283942052f1 (diff) |
filter: update python binding hashes
Signed-off-by: Josh Morman <jmorman@perspectalabs.com>
Diffstat (limited to 'gr-filter/examples')
-rw-r--r-- | gr-filter/examples/channelize.py | 3 | ||||
-rw-r--r-- | gr-filter/examples/chirp_channelize.py | 3 | ||||
-rw-r--r-- | gr-filter/examples/decimate.py | 3 | ||||
-rw-r--r-- | gr-filter/examples/gr_filtdes_live_upd.py | 3 | ||||
-rw-r--r-- | gr-filter/examples/interpolate.py | 5 | ||||
-rw-r--r-- | gr-filter/examples/reconstruction.py | 3 |
6 files changed, 13 insertions, 7 deletions
diff --git a/gr-filter/examples/channelize.py b/gr-filter/examples/channelize.py index d46eb2a715..4d92bdce3f 100644 --- a/gr-filter/examples/channelize.py +++ b/gr-filter/examples/channelize.py @@ -11,6 +11,7 @@ from gnuradio import gr from gnuradio import blocks from gnuradio import filter +from gnuradio.fft import window import sys, time import numpy @@ -39,7 +40,7 @@ class pfb_top_block(gr.top_block): # Create a set of taps for the PFB channelizer self._taps = filter.firdes.low_pass_2(1, self._ifs, 475.50, 50, attenuation_dB=100, - window=filter.firdes.WIN_BLACKMAN_hARRIS) + window=window.WIN_BLACKMAN_hARRIS) # Calculate the number of taps per channel for our own information tpc = numpy.ceil(float(len(self._taps)) / float(self._M)) diff --git a/gr-filter/examples/chirp_channelize.py b/gr-filter/examples/chirp_channelize.py index 9d30554fc3..03efcf873f 100644 --- a/gr-filter/examples/chirp_channelize.py +++ b/gr-filter/examples/chirp_channelize.py @@ -11,6 +11,7 @@ from gnuradio import gr from gnuradio import blocks from gnuradio import filter +from gnuradio.fft import window import sys, time import numpy @@ -38,7 +39,7 @@ class pfb_top_block(gr.top_block): # Create a set of taps for the PFB channelizer self._taps = filter.firdes.low_pass_2(1, self._fs, 500, 20, attenuation_dB=10, - window=filter.firdes.WIN_BLACKMAN_hARRIS) + window=window.WIN_BLACKMAN_hARRIS) # Calculate the number of taps per channel for our own information tpc = numpy.ceil(float(len(self._taps)) / float(self._M)) diff --git a/gr-filter/examples/decimate.py b/gr-filter/examples/decimate.py index 99ababaa4d..8e2f3c7c36 100644 --- a/gr-filter/examples/decimate.py +++ b/gr-filter/examples/decimate.py @@ -11,6 +11,7 @@ from gnuradio import gr from gnuradio import blocks from gnuradio import filter +from gnuradio.fft import window import sys, time import numpy @@ -40,7 +41,7 @@ class pfb_top_block(gr.top_block): self._taps = filter.firdes.low_pass_2(1, self._fs, 200, 150, attenuation_dB=120, - window=filter.firdes.WIN_BLACKMAN_hARRIS) + window=window.WIN_BLACKMAN_hARRIS) # Calculate the number of taps per channel for our own information tpc = numpy.ceil(float(len(self._taps)) / float(self._decim)) diff --git a/gr-filter/examples/gr_filtdes_live_upd.py b/gr-filter/examples/gr_filtdes_live_upd.py index d173388137..807d550662 100644 --- a/gr-filter/examples/gr_filtdes_live_upd.py +++ b/gr-filter/examples/gr_filtdes_live_upd.py @@ -10,6 +10,7 @@ from gnuradio.filter import filter_design from gnuradio import gr, filter +from gnuradio.fft import window from gnuradio import blocks import sys @@ -60,7 +61,7 @@ class my_top_block(gr.top_block): channel = channels.channel_model(0.01) self.filt = filter.fft_filter_ccc(1, self.filt_taps) thr = blocks.throttle(gr.sizeof_gr_complex, 100*npts) - self.snk1 = qtgui.freq_sink_c(npts, filter.firdes.WIN_BLACKMAN_hARRIS, + self.snk1 = qtgui.freq_sink_c(npts, window.WIN_BLACKMAN_hARRIS, 0, Rs, "Complex Freq Example", 1) diff --git a/gr-filter/examples/interpolate.py b/gr-filter/examples/interpolate.py index eed63938f7..8674566e25 100644 --- a/gr-filter/examples/interpolate.py +++ b/gr-filter/examples/interpolate.py @@ -11,6 +11,7 @@ from gnuradio import gr from gnuradio import blocks from gnuradio import filter +from gnuradio.fft import window import sys, time import numpy @@ -46,7 +47,7 @@ class pfb_top_block(gr.top_block): self._interp*self._fs, freq2+50, 50, attenuation_dB=120, - window=filter.firdes.WIN_BLACKMAN_hARRIS) + window=window.WIN_BLACKMAN_hARRIS) # Create a set of taps for the PFB arbitrary resampler # The filter size is the number of filters in the filterbank; 32 will give very low side-lobes, @@ -58,7 +59,7 @@ class pfb_top_block(gr.top_block): flt_size*self._fs, freq2+50, 150, attenuation_dB=120, - window=filter.firdes.WIN_BLACKMAN_hARRIS) + window=window.WIN_BLACKMAN_hARRIS) # Calculate the number of taps per channel for our own information tpc = numpy.ceil(float(len(self._taps)) / float(self._interp)) diff --git a/gr-filter/examples/reconstruction.py b/gr-filter/examples/reconstruction.py index a9cf67511d..a484d6a27a 100644 --- a/gr-filter/examples/reconstruction.py +++ b/gr-filter/examples/reconstruction.py @@ -11,6 +11,7 @@ from gnuradio import gr, digital from gnuradio import filter from gnuradio import blocks +from gnuradio.fft import window import sys import numpy @@ -43,7 +44,7 @@ def main(): tb = 400 proto_taps = filter.firdes.low_pass_2(1, nchans*fs, bw, tb, 80, - filter.firdes.WIN_BLACKMAN_hARRIS) + window.WIN_BLACKMAN_hARRIS) print("Filter length: ", len(proto_taps)) |