Commit Graph

2 Commits

Author SHA1 Message Date
Lars Amsel
6536a0ecb9 host: Release GIL for find
`find` can be a time consuming routine when it broadcasts for devices
and there are a lot of them in your network. We therefore have to
release the GIL before calling into find because otherwise the GIL
would be locked until `find` returns.
2024-10-10 08:11:26 +02:00
Martin Braun
60fb5d5f13 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())
2020-12-07 11:53:35 -08:00