diff options
Diffstat (limited to 'host/python')
-rw-r--r-- | host/python/pyuhd.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/host/python/pyuhd.cpp b/host/python/pyuhd.cpp index 27b154c90..e0f35d929 100644 --- a/host/python/pyuhd.cpp +++ b/host/python/pyuhd.cpp @@ -171,6 +171,15 @@ BOOST_PYTHON_MODULE(libpyuhd) export_metadata(); export_sensors(); export_tune(); + + // Declare some more converters + iterable_converter() + .from_python<std::vector<uhd::device_addr_t>>() + ; + + bp::to_python_converter< + std::vector<uhd::device_addr_t>, + iterable_to_python_list<std::vector<uhd::device_addr_t>>, false >(); } // Register usrp submodule |