def _set_iso(self, value):
    self._check_camera_open()
    try:
        if (not (0 <= value <= 1600)):
            raise PiCameraValueError(('Invalid iso value: %d (valid range 0..800)' % value))
    except TypeError:
        raise PiCameraValueError(('Invalid iso value: %s' % value))
    self._camera.control.params[mmal.MMAL_PARAMETER_ISO] = value
def _set_iso(self, value):
    self._check_camera_open()
    try:
        if (not (0 <= value <= 1600)):
            raise PiCameraValueError(('Invalid iso value: %d (valid range 0..800)' % value))
    except TypeError:
        raise PiCameraValueError(('Invalid iso value: %s' % value))
    self._camera.control.params[mmal.MMAL_PARAMETER_ISO] = value