summaryrefslogtreecommitdiff
path: root/gr-fft/python/fft
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2020-08-13 15:08:08 +0200
committerMartin Braun <martin@gnuradio.org>2020-08-14 04:11:26 -0700
commit3adb522b0ddf6736605beea797016353a1d4a2b8 (patch)
tree6ba82c0bd96ac2a4461d13f61095f5d9afaeb13c /gr-fft/python/fft
parent84e007d9be2a8fe1b3dd050f53fde35f77860a62 (diff)
fft: window: Provide default value for beta param on window::build
The API call fft::window::build() takes a third parameter, beta, that only applies for the Kaiser window. For other windows, it is necessary to provide a dummy value to call this function. The declared-deprecated version firdes::window() on the other hand does not require specifying beta when not needed. Instead, we provide a default value of 6.76 which will still generate a valid (and generally useful) Kaiser window, but means we don't have to specify beta for other windows.
Diffstat (limited to 'gr-fft/python/fft')
-rw-r--r--gr-fft/python/fft/bindings/window_python.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gr-fft/python/fft/bindings/window_python.cc b/gr-fft/python/fft/bindings/window_python.cc
index ffde426cb0..51dd7200d1 100644
--- a/gr-fft/python/fft/bindings/window_python.cc
+++ b/gr-fft/python/fft/bindings/window_python.cc
@@ -175,7 +175,7 @@ void bind_window(py::module& m)
&window::build,
py::arg("type"),
py::arg("ntaps"),
- py::arg("beta"),
+ py::arg("beta") = 6.76,
D(window, build))
;