def _get_digital_gain(self):
    self._check_camera_open()
    return mo.to_fraction(self._camera.control.params[mmal.MMAL_PARAMETER_CAMERA_SETTINGS].digital_gain)
def _get_digital_gain(self):
    self._check_camera_open()
    return mo.to_fraction(self._camera.control.params[mmal.MMAL_PARAMETER_CAMERA_SETTINGS].digital_gain)