From a3213183dcf3f5a4e88adbc1f6cbf5187f421027 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Wed, 27 Feb 2019 13:09:32 -0800 Subject: fixup! python: Replace Boost.Python with PyBind11 TuneRequest() was not set up to handle an optional second argument in the constructor. --- host/lib/types/tune_python.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/host/lib/types/tune_python.hpp b/host/lib/types/tune_python.hpp index 6c3607908..d345b384c 100644 --- a/host/lib/types/tune_python.hpp +++ b/host/lib/types/tune_python.hpp @@ -25,6 +25,7 @@ void export_tune(py::module& m) py::class_(m, "tune_request") .def(py::init()) + .def(py::init(), py::arg("target_freq")=0.0) .def_readwrite("target_freq" , &tune_request_t::target_freq ) .def_readwrite("rf_freq_policy" , &tune_request_t::rf_freq_policy ) .def_readwrite("dsp_freq_policy", &tune_request_t::dsp_freq_policy) -- cgit v1.2.3