diff options
author | Johannes Demel <demel@ant.uni-bremen.de> | 2020-06-26 12:41:30 +0200 |
---|---|---|
committer | mormj <34754695+mormj@users.noreply.github.com> | 2020-06-27 16:15:47 -0400 |
commit | 467f3c127bc9059d8d210dbae72350627b732f8b (patch) | |
tree | ea3024e247be71989d825dd92694743feb0d7ced /gr-uhd/python/uhd/bindings/usrp_block_python.cc | |
parent | 8483ad2be672669713acf1ab95a0cad2a6beb035 (diff) |
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.
Diffstat (limited to 'gr-uhd/python/uhd/bindings/usrp_block_python.cc')
-rw-r--r-- | gr-uhd/python/uhd/bindings/usrp_block_python.cc | 3 |
1 files changed, 1 insertions, 2 deletions
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, |