diff options
author | Martin Braun <martin.braun@ettus.com> | 2018-11-12 14:28:42 -0800 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2018-11-12 14:38:36 -0800 |
commit | 20db23debcfe9f7aa7dfe79a90b2dad3ea54fd13 (patch) | |
tree | 53aa0cf8d31062935349c0794dfc8b0f31512156 /gr-uhd/python/uhd | |
parent | c7ed12a6602aa679c76d199cce921d3e586f9306 (diff) |
uhd: Update USRP block arguments in Python
The gnuradio.uhd.{usrp_source,usrp_sink,amsg_source} blocks have
a custom ctor in Python which requires manual tracking of the available
arguments. This updates the Python module with respect to the C++ API.
Co-Authored-By: Ben Kempke <bpkempke@umich.edu>
Diffstat (limited to 'gr-uhd/python/uhd')
-rw-r--r-- | gr-uhd/python/uhd/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gr-uhd/python/uhd/__init__.py b/gr-uhd/python/uhd/__init__.py index d9f4eaab3e..9850f612fb 100644 --- a/gr-uhd/python/uhd/__init__.py +++ b/gr-uhd/python/uhd/__init__.py @@ -120,7 +120,8 @@ def _prepare_uhd_swig(): if key in kwargs: kwargs[key] = cast(kwargs[key]) except: pass #don't pass kwargs, it confuses swig, map into args list: - for key in ('device_addr', 'stream_args', 'io_type', 'num_channels', 'msgq'): + for key in ('device_addr', 'stream_args', + 'issue_stream_cmd_on_start', 'tsb_tag_name', 'msgq'): if key in kwargs: args.append(kwargs[key]) return old_constructor(*args) return constructor_interceptor |