From 467f3c127bc9059d8d210dbae72350627b732f8b Mon Sep 17 00:00:00 2001 From: Johannes Demel <demel@ant.uni-bremen.de> Date: Fri, 26 Jun 2020 12:41:30 +0200 Subject: uhd: Fix missing bindings uhd python bindings were missing a couple of functions. 1. `uhd.ALL_MBOARDS` was not defined. 2. `uhd.streams_args` was incomplete. Instead of import magic, we define a pybind constructor which supports all cases. This should ease the maintainance burden as well. Be aware: some notes that `this file was generated with bindtool` were removed because this files contain manual edits. The foundations were probably generated with bindtool once. --- gr-uhd/python/uhd/bindings/usrp_block_python.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'gr-uhd/python/uhd/bindings/usrp_block_python.cc') diff --git a/gr-uhd/python/uhd/bindings/usrp_block_python.cc b/gr-uhd/python/uhd/bindings/usrp_block_python.cc index 7d25ce1a34..d816a1668d 100644 --- a/gr-uhd/python/uhd/bindings/usrp_block_python.cc +++ b/gr-uhd/python/uhd/bindings/usrp_block_python.cc @@ -7,8 +7,6 @@ * */ -/* This file is automatically generated using bindtool */ - #include <pybind11/complex.h> #include <pybind11/pybind11.h> #include <pybind11/stl.h> @@ -24,6 +22,7 @@ void bind_usrp_block(py::module& m) using usrp_block = ::gr::uhd::usrp_block; + m.attr("ALL_MBOARDS") = py::int_(::uhd::usrp::multi_usrp::ALL_MBOARDS); py::class_<usrp_block, gr::sync_block, -- cgit v1.2.3