def _get_awb_gains(self):
    self._check_camera_open()
    mp = self._camera.control.params[mmal.MMAL_PARAMETER_CAMERA_SETTINGS]
    return (mo.to_fraction(mp.awb_red_gain), mo.to_fraction(mp.awb_blue_gain))
def _get_awb_gains(self):
    self._check_camera_open()
    mp = self._camera.control.params[mmal.MMAL_PARAMETER_CAMERA_SETTINGS]
    return (mo.to_fraction(mp.awb_red_gain), mo.to_fraction(mp.awb_blue_gain))