Skip to content

Commit

Permalink
filter: update python binding hashes
Browse files Browse the repository at this point in the history
Signed-off-by: Josh Morman <[email protected]>
  • Loading branch information
mormj authored and marcusmueller committed Dec 18, 2020
1 parent a94c4f2 commit 96d00b4
Show file tree
Hide file tree
Showing 21 changed files with 37 additions and 22 deletions.
3 changes: 2 additions & 1 deletion gr-analog/examples/fm_demod.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
from gnuradio import analog
from gnuradio import audio
from gnuradio.filter import firdes
from gnuradio.fft import window
import sys, math

# Create a top_block
Expand Down Expand Up @@ -49,7 +50,7 @@ def __init__(self):
15e3, # low pass cutoff freq
1e3, # width of trans. band
60, # stop band attenuaton
firdes.WIN_KAISER)
window.WIN_KAISER)

# Build the resampler and filter
resamp_filter = filter.pfb_arb_resampler_fff(resamp_rate,
Expand Down
3 changes: 2 additions & 1 deletion gr-analog/examples/fmtest.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
from gnuradio import gr
from gnuradio import blocks
from gnuradio import filter
from gnuradio.fft import window
from gnuradio import analog
from gnuradio import channels
import sys, math, time
Expand Down Expand Up @@ -82,7 +83,7 @@ def __init__(self):
self._chan_rate = self._if_rate / self._M
self._taps = filter.firdes.low_pass_2(1, self._if_rate, bw, t_bw,
attenuation_dB=100,
window=filter.firdes.WIN_BLACKMAN_hARRIS)
window=window.WIN_BLACKMAN_hARRIS)
tpc = math.ceil(float(len(self._taps)) / float(self._M))

print("Number of taps: ", len(self._taps))
Expand Down
3 changes: 2 additions & 1 deletion gr-filter/examples/channelize.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -39,7 +40,7 @@ def __init__(self):
# 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))
Expand Down
3 changes: 2 additions & 1 deletion gr-filter/examples/chirp_channelize.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -38,7 +39,7 @@ def __init__(self):
# 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))
Expand Down
3 changes: 2 additions & 1 deletion gr-filter/examples/decimate.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -40,7 +41,7 @@ def __init__(self):
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))
Expand Down
3 changes: 2 additions & 1 deletion gr-filter/examples/gr_filtdes_live_upd.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -60,7 +61,7 @@ def __init__(self):
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)

Expand Down
5 changes: 3 additions & 2 deletions gr-filter/examples/interpolate.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -46,7 +47,7 @@ def __init__(self):
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,
Expand All @@ -58,7 +59,7 @@ def __init__(self):
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))
Expand Down
3 changes: 2 additions & 1 deletion gr-filter/examples/reconstruction.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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))


Expand Down
3 changes: 2 additions & 1 deletion gr-filter/lib/rational_resampler_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#endif

#include "rational_resampler_impl.h"
#include <gnuradio/fft/window.h>
#include <gnuradio/filter/firdes.h>
#include <gnuradio/integer_math.h>
#include <gnuradio/io_signature.h>
Expand Down Expand Up @@ -62,7 +63,7 @@ std::vector<TAP_T> design_resampler_filter(const unsigned interpolation,
interpolation, /* Fs */
mid_transition_band, /* trans mid point */
trans_width, /* transition width */
firdes::WIN_KAISER,
fft::window::WIN_KAISER,
beta); /* beta*/
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
/* BINDTOOL_GEN_AUTOMATIC(0) */
/* BINDTOOL_USE_PYGCCXML(0) */
/* BINDTOOL_HEADER_FILE(pfb_arb_resampler_fff.h) */
/* BINDTOOL_HEADER_FILE_HASH(c5e898dcdfca7ab572b39fcb3f977449) */
/* BINDTOOL_HEADER_FILE_HASH(01c79a89ea9653af3845ae6feedf7112) */
/***********************************************************************************/

#include <pybind11/complex.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
/* BINDTOOL_GEN_AUTOMATIC(0) */
/* BINDTOOL_USE_PYGCCXML(0) */
/* BINDTOOL_HEADER_FILE(pfb_arb_resampler.h) */
/* BINDTOOL_HEADER_FILE_HASH(20d30db553c5a0baf55e49dcb9fd7f47) */
/* BINDTOOL_HEADER_FILE_HASH(575adbe9dca6665e15803cdc1f2fa028) */
/***********************************************************************************/

#include <pybind11/complex.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
/* BINDTOOL_GEN_AUTOMATIC(0) */
/* BINDTOOL_USE_PYGCCXML(0) */
/* BINDTOOL_HEADER_FILE(pfb_channelizer_ccf.h) */
/* BINDTOOL_HEADER_FILE_HASH(58e2ad3c8033d6b70a93e1210389251a) */
/* BINDTOOL_HEADER_FILE_HASH(e5e101f91f9b1d578affd27a80a639b7) */
/***********************************************************************************/

#include <pybind11/complex.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
/* BINDTOOL_GEN_AUTOMATIC(0) */
/* BINDTOOL_USE_PYGCCXML(0) */
/* BINDTOOL_HEADER_FILE(pfb_decimator_ccf.h) */
/* BINDTOOL_HEADER_FILE_HASH(c5b86590e4f51a1b90b5b5464ee0fca1) */
/* BINDTOOL_HEADER_FILE_HASH(b1bbd51a820b07e98a315670a82d4c64) */
/***********************************************************************************/

#include <pybind11/complex.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
/* BINDTOOL_GEN_AUTOMATIC(0) */
/* BINDTOOL_USE_PYGCCXML(0) */
/* BINDTOOL_HEADER_FILE(pfb_interpolator_ccf.h) */
/* BINDTOOL_HEADER_FILE_HASH(b5d91c997d6fec23021c8c0dd766e535) */
/* BINDTOOL_HEADER_FILE_HASH(0cad2271ae2fb9771ab7a3e89dc95300) */
/***********************************************************************************/

#include <pybind11/complex.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
/* BINDTOOL_GEN_AUTOMATIC(0) */
/* BINDTOOL_USE_PYGCCXML(0) */
/* BINDTOOL_HEADER_FILE(polyphase_filterbank.h) */
/* BINDTOOL_HEADER_FILE_HASH(00757cfefaac6f0906e8e0643ae0213c) */
/* BINDTOOL_HEADER_FILE_HASH(107cf4797045f9c8e227c2c741e2ed4d) */
/***********************************************************************************/

#include <pybind11/complex.h>
Expand Down
3 changes: 2 additions & 1 deletion gr-qtgui/examples/pyqt_example_c.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#

from gnuradio import gr, filter
from gnuradio.fft import window
from gnuradio import blocks
import sys

Expand Down Expand Up @@ -144,7 +145,7 @@ def __init__(self):
src = blocks.add_cc()
channel = channels.channel_model(0.001)
thr = blocks.throttle(gr.sizeof_gr_complex, 100*fftsize)
self.snk1 = qtgui.sink_c(fftsize, filter.firdes.WIN_BLACKMAN_hARRIS,
self.snk1 = qtgui.sink_c(fftsize, window.WIN_BLACKMAN_hARRIS,
0, Rs,
"Complex Signal Example",
True, True, True, False, None)
Expand Down
3 changes: 2 additions & 1 deletion gr-qtgui/examples/pyqt_example_f.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

from gnuradio import gr, filter
from gnuradio import blocks
from gnuradio.fft import window
import sys

try:
Expand Down Expand Up @@ -135,7 +136,7 @@ def __init__(self):
thr = blocks.throttle(gr.sizeof_float, 100*fftsize)
noise = analog.noise_source_f(analog.GR_GAUSSIAN, 0.001)
add = blocks.add_ff()
self.snk1 = qtgui.sink_f(fftsize, filter.firdes.WIN_BLACKMAN_hARRIS,
self.snk1 = qtgui.sink_f(fftsize, window.WIN_BLACKMAN_hARRIS,
0, Rs,
"Float Signal Example",
True, True, True, False, None)
Expand Down
3 changes: 2 additions & 1 deletion gr-qtgui/examples/pyqt_freq_c.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

from gnuradio import gr, filter
from gnuradio import blocks
from gnuradio.fft import window
import sys

try:
Expand Down Expand Up @@ -144,7 +145,7 @@ def __init__(self):
src = blocks.add_cc()
channel = channels.channel_model(0.01)
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", 3, None)

Expand Down
3 changes: 2 additions & 1 deletion gr-qtgui/examples/pyqt_freq_f.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

from gnuradio import gr, filter
from gnuradio import blocks
from gnuradio.fft import window
import sys

try:
Expand Down Expand Up @@ -134,7 +135,7 @@ def __init__(self):
src2 = analog.sig_source_f(Rs, analog.GR_SIN_WAVE, f2, 0.1, 0)
src = blocks.add_ff()
thr = blocks.throttle(gr.sizeof_float, 100*npts)
self.snk1 = qtgui.freq_sink_f(npts, filter.firdes.WIN_BLACKMAN_hARRIS,
self.snk1 = qtgui.freq_sink_f(npts, window.WIN_BLACKMAN_hARRIS,
0, Rs,
"Real freq Example", 3, None)

Expand Down
3 changes: 2 additions & 1 deletion gr-qtgui/examples/pyqt_waterfall_c.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

from gnuradio import gr, filter
from gnuradio import blocks
from gnuradio.fft import window
import sys

try:
Expand Down Expand Up @@ -147,7 +148,7 @@ def __init__(self):
channel = channels.channel_model(0.01)
thr = blocks.throttle(gr.sizeof_gr_complex, 100*npts)
filt = filter.fft_filter_ccc(1, taps)
self.snk1 = qtgui.waterfall_sink_c(npts, filter.firdes.WIN_BLACKMAN_hARRIS,
self.snk1 = qtgui.waterfall_sink_c(npts, window.WIN_BLACKMAN_hARRIS,
0, Rs,
"Complex Waterfall Example", 2, None)
self.snk1.set_color_map(0, qtgui.INTENSITY_COLOR_MAP_TYPE_COOL)
Expand Down
3 changes: 2 additions & 1 deletion gr-qtgui/examples/pyqt_waterfall_f.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

from gnuradio import gr, filter
from gnuradio import blocks
from gnuradio.fft import window
import sys

try:
Expand Down Expand Up @@ -133,7 +134,7 @@ def __init__(self):
src2 = analog.sig_source_f(Rs, analog.GR_SIN_WAVE, f2, 0.1, 0)
src = blocks.add_ff()
thr = blocks.throttle(gr.sizeof_float, 100*npts)
self.snk1 = qtgui.waterfall_sink_f(npts, filter.firdes.WIN_BLACKMAN_hARRIS,
self.snk1 = qtgui.waterfall_sink_f(npts, window.WIN_BLACKMAN_hARRIS,
0, Rs,
"Real Waterfall Example", 2, None)
self.snk1.set_color_map(0, qtgui.INTENSITY_COLOR_MAP_TYPE_COOL)
Expand Down

0 comments on commit 96d00b4

Please sign in to comment.