From 0a89472e5235bb9d3b6872271c23cb167c5d430c Mon Sep 17 00:00:00 2001 From: Josh Morman <mormjb@gmail.com> Date: Fri, 26 Jun 2020 09:08:55 -0400 Subject: uhd: wrap get_usrp_info to compatible return type - Move get_usrp_info() to usrp_block - Casts the return value to std::map so PyBind11 can turn it into a dictionary in Python This fixes an issue where get_usrp_info() would cause an Exception with PyBind11. Co-authored-by: Martin Braun <martin.braun@ettus.com> --- gr-uhd/python/uhd/bindings/usrp_sink_python.cc | 6 ------ 1 file changed, 6 deletions(-) (limited to 'gr-uhd/python/uhd/bindings/usrp_sink_python.cc') diff --git a/gr-uhd/python/uhd/bindings/usrp_sink_python.cc b/gr-uhd/python/uhd/bindings/usrp_sink_python.cc index d0a7dc482d..2ad0c599d1 100644 --- a/gr-uhd/python/uhd/bindings/usrp_sink_python.cc +++ b/gr-uhd/python/uhd/bindings/usrp_sink_python.cc @@ -57,12 +57,6 @@ void bind_usrp_sink(py::module& m) D(usrp_sink, set_start_time)) - .def("get_usrp_info", - &usrp_sink::get_usrp_info, - py::arg("chan") = 0, - D(usrp_sink, get_usrp_info)) - - .def("get_lo_names", &usrp_sink::get_lo_names, py::arg("chan") = 0, -- cgit v1.2.3