diff options
author | Martin Braun <martin.braun@ettus.com> | 2020-12-04 13:53:34 +0100 |
---|---|---|
committer | michael-west <michael.west@ettus.com> | 2020-12-07 11:53:35 -0800 |
commit | 60fb5d5f1377f5a4af7e1e55b1ec83fed864153f (patch) | |
tree | a9e12d953cad5de20be2270fb9504a9b0c6c83fe /host/python/CMakeLists.txt | |
parent | eaf006225425e146657a09c7360aca1f9615886d (diff) | |
download | uhd-60fb5d5f1377f5a4af7e1e55b1ec83fed864153f.tar.gz uhd-60fb5d5f1377f5a4af7e1e55b1ec83fed864153f.tar.bz2 uhd-60fb5d5f1377f5a4af7e1e55b1ec83fed864153f.zip |
python: Add find() to the Python API
This a mapping of uhd::device::find() into uhd.find() on the Python
side. The uhd::device is intentionally not mapped into Python (prefer
MultiUSRP or RfnocGraph instead), so the namespace is moved up one
level.
Example:
>>> import uhd
>>> # Now print the device args for all found B200s:
>>> for dev_args in uhd.find("type=b200")): print(dev_args.to_string())
Diffstat (limited to 'host/python/CMakeLists.txt')
-rw-r--r-- | host/python/CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/host/python/CMakeLists.txt b/host/python/CMakeLists.txt index 1e9fefa43..234870c5f 100644 --- a/host/python/CMakeLists.txt +++ b/host/python/CMakeLists.txt @@ -32,6 +32,7 @@ execute_process( add_library(pyuhd SHARED pyuhd.cpp ${CMAKE_SOURCE_DIR}/lib/property_tree_python.cpp + ${CMAKE_SOURCE_DIR}/lib/device_python.cpp ${CMAKE_SOURCE_DIR}/lib/usrp/multi_usrp_python.cpp ) # python expects extension modules with a particular suffix |