diff options
author | Martin Braun <martin.braun@ettus.com> | 2015-06-27 11:56:13 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2015-06-27 11:56:13 -0700 |
commit | c26492a02e3c16e1463bf7bf2dc97958c8568fad (patch) | |
tree | debada18e7760f602d31c5b183c101b17d63e92f /gnuradio-runtime/python/gnuradio | |
parent | 8ef1ea6d5e1781379473a1990ca30e3833f49c0c (diff) |
base: Removed subdev as specific option type
This was actually buggy, but it was also never ever used in the
current tree. Let's take it out completely. Subdev checking is
UHD specific, and changes with new devices, and shouldn't be
tracked in gnuradio-runtime.
Diffstat (limited to 'gnuradio-runtime/python/gnuradio')
-rw-r--r-- | gnuradio-runtime/python/gnuradio/eng_option.py | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/gnuradio-runtime/python/gnuradio/eng_option.py b/gnuradio-runtime/python/gnuradio/eng_option.py index 5d8660f0f2..ae000fe442 100644 --- a/gnuradio-runtime/python/gnuradio/eng_option.py +++ b/gnuradio-runtime/python/gnuradio/eng_option.py @@ -39,25 +39,9 @@ def check_intx (option, opt, value): raise OptionValueError ( "option %s: invalid integer value: %r" % (opt, value)) -def check_subdev (option, opt, value): - """ - Value has the form: (A|B)(:0|1)? - - Returns: - a 2-tuple (0|1, 0|1) - """ - d = { 'A' : (0, 0), 'A:0' : (0, 0), 'A:1' : (0, 1), 'A:2' : (0, 2), - 'B' : (1, 0), 'B:0' : (1, 0), 'B:1' : (1, 1), 'B:2' : (1, 2) } - try: - return d[value.upper()] - except: - raise OptionValueError( - "option %s: invalid subdev: '%r', must be one of %s" % (opt, value, ', '.join(sorted(d.keys())))) - class eng_option (Option): TYPES = Option.TYPES + ("eng_float", "intx", "subdev") TYPE_CHECKER = copy (Option.TYPE_CHECKER) TYPE_CHECKER["eng_float"] = check_eng_float TYPE_CHECKER["intx"] = check_intx - TYPE_CHECKER["subdev"] = check_subdev |