From 3adb522b0ddf6736605beea797016353a1d4a2b8 Mon Sep 17 00:00:00 2001 From: Martin Braun <martin.braun@ettus.com> Date: Thu, 13 Aug 2020 15:08:08 +0200 Subject: 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. --- gr-fft/python/fft/bindings/window_python.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gr-fft/python/fft') 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)) ; -- cgit v1.2.3