(self, key, value)
Set the value of a state option.

        :param str key:     Name of the state option.
        :param str value:   The value of the state option. Must be of the same type as registered.
        :return:            None
Set the value of a state option.
Set the value of a state option .
def __setitem__(self, key, value):
        """
        Set the value of a state option.

        :param str key:     Name of the state option.
        :param str value:   The value of the state option. Must be of the same type as registered.
        :return:            None
        """

        o = self._get_option_desc(key)

        if type(value) not in o.types:
            raise SimStateOptionsError("The value '%s' does not have an acceptable type for state option '%s'. "
                                       "Accepted types are: %s." %
                                       (value, key, str(o.types))
                                       )

        self._options[o.name] = value
def __setitem__ ( self , key , value ) : o = self . _get_option_desc ( key ) if type ( value ) not in o . types : raise SimStateOptionsError ( "The value '%s' does not have an acceptable type for state option '%s'. " "Accepted types are: %s." % ( value , key , str ( o . types ) ) ) self . _options [ o . name ] = value