(self, value)
Set the instance's class. Throws an exception if there are multiple
        classes.
Set the instance's class. Throws an exception if there are multiple
        classes.
Set the instance s class . Throws an exception if there are multiple classes .
def set_class(self, value):
        """
        Set the instance's class. Throws an exception if there are multiple
        classes.
        """
        self._check_single_class()
        if not isinstance(value, Real):
            self._y[0] = self._domain.class_var.to_val(value)
        else:
            self._y[0] = value
def set_class ( self , value ) : self . _check_single_class ( ) if not isinstance ( value , Real ) : self . _y [ 0 ] = self . _domain . class_var . to_val ( value ) else : self . _y [ 0 ] = value