def _set_framerate_range(self, value):
    self._check_camera_open()
    self._check_recording_stopped()
    (low, high) = value
    low = mo.to_fraction(low, den_limit=256)
    high = mo.to_fraction(high, den_limit=256)
    if (not (0 < low <= self.MAX_FRAMERATE)):
        raise PiCameraValueError(('Invalid low framerate: %.2ffps' % low))
    if (not (0 < high <= self.MAX_FRAMERATE)):
        raise PiCameraValueError(('Invalid high framerate: %.2ffps' % high))
    if (high < low):
        raise PiCameraValueError('framerate_range is backwards')
    sensor_mode = self.sensor_mode
    clock_mode = self.CLOCK_MODES[self.clock_mode]
    resolution = self.resolution
    self._disable_camera()
    self._configure_camera(sensor_mode=sensor_mode, framerate=(low, high), resolution=resolution, clock_mode=clock_mode)
    self._configure_splitter()
    self._enable_camera()
def _set_framerate_range(self, value):
    self._check_camera_open()
    self._check_recording_stopped()
    (low, high) = value
    low = mo.to_fraction(low, den_limit=256)
    high = mo.to_fraction(high, den_limit=256)
    if (not (0 < low <= self.MAX_FRAMERATE)):
        raise PiCameraValueError(('Invalid low framerate: %.2ffps' % low))
    if (not (0 < high <= self.MAX_FRAMERATE)):
        raise PiCameraValueError(('Invalid high framerate: %.2ffps' % high))
    if (high < low):
        raise PiCameraValueError('framerate_range is backwards')
    sensor_mode = self.sensor_mode
    clock_mode = self.CLOCK_MODES[self.clock_mode]
    resolution = self.resolution
    self._disable_camera()
    self._configure_camera(sensor_mode=sensor_mode, framerate=(low, high), resolution=resolution, clock_mode=clock_mode)
    self._configure_splitter()
    self._enable_camera()