Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
uhd: Add uhd.find to the pybind11 interface
`uhd_find_devices` would be the default shell function to discover available USRPs. PyUHD provides a function `uhd.find("")` that does the job. Besides, in `gr-uhd/python/uhd/__init__.py` there is a definition of `find_devices`. However, this function is broken at the moment because it tries to use a `find_devices_raw` function from the gr-uhd pybind11 interface that is not available. With this commit, we may be able to fix `find_devices` as well. The actual change is just copied from UHD `host/lib/device_python.cpp`. Alternative solutions would include a new function in C++ and a pybind11 wrapper. Signed-off-by: Johannes Demel <demel@ant.uni-bremen.de>
- Loading branch information