dont check that
authorjblum <jblum@221aa14e-8319-0410-a670-987f0aec2ac5>
Sun, 30 Nov 2008 18:53:29 +0000 (18:53 +0000)
committerjblum <jblum@221aa14e-8319-0410-a670-987f0aec2ac5>
Sun, 30 Nov 2008 18:53:29 +0000 (18:53 +0000)
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@10096 221aa14e-8319-0410-a670-987f0aec2ac5

grc/src/platforms/base/Param.py

index 200919c7a03a176b35ffecbcb4c311af4c2c3077..6f512cb870cba2c106d6d2821119c7fc39957cab 100644 (file)
@@ -158,12 +158,7 @@ class Param(Element):
                        #store the option
                        self._options[key] = option
                #test the enum options
-               if self._options or self.is_enum():
-                       #test against bad combos of type and enum
-                       try: assert(self._options)
-                       except AssertionError: self._exit_with_error('At least one option must exist when type "enum" is set.')
-                       try: assert(self.is_enum())
-                       except AssertionError: self._exit_with_error('Type "enum" must be set when options are present.')
+               if self.is_enum():
                        #test against options with identical keys
                        try: assert(len(set(self.get_option_keys())) == len(self._options))
                        except AssertionError: self._exit_with_error('Options keys "%s" are not unique.'%self.get_option_keys())