diff options
author | Josh Morman <mormjb@gmail.com> | 2020-06-26 09:08:55 -0400 |
---|---|---|
committer | mormj <34754695+mormj@users.noreply.github.com> | 2020-08-14 05:44:26 -0400 |
commit | 0a89472e5235bb9d3b6872271c23cb167c5d430c (patch) | |
tree | 96369e7144fc962453690b5dc66221f9ae225aae /gr-uhd/python/uhd/bindings/usrp_sink_python.cc | |
parent | d6cb8d359d333c6f9af629bda5950db16d604ce5 (diff) |
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>
Diffstat (limited to 'gr-uhd/python/uhd/bindings/usrp_sink_python.cc')
-rw-r--r-- | gr-uhd/python/uhd/bindings/usrp_sink_python.cc | 6 |
1 files changed, 0 insertions, 6 deletions
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, |