From 82eba1e99a0948274b1971ffefa4728a1ca2a304 Mon Sep 17 00:00:00 2001 From: Richard Bowman Date: Tue, 27 Apr 2021 20:17:07 +0100 Subject: [PATCH] fixed typing error --- .../picamera_autocalibrate/recalibrate_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openflexure_microscope/api/default_extensions/picamera_autocalibrate/recalibrate_utils.py b/openflexure_microscope/api/default_extensions/picamera_autocalibrate/recalibrate_utils.py index c1aba3c7..450584ed 100644 --- a/openflexure_microscope/api/default_extensions/picamera_autocalibrate/recalibrate_utils.py +++ b/openflexure_microscope/api/default_extensions/picamera_autocalibrate/recalibrate_utils.py @@ -122,7 +122,7 @@ def test_exposure_settings(camera: PiCamera, percentile: float) -> ExposureTest: "camera's black level compensation has gone wrong." ) max_brightness = 1 - shutter_speed = float(camera.shutter_speed) + shutter_speed = int(camera.shutter_speed) analog_gain = float(camera.analog_gain) logging.info( f"Brightness: {max_brightness: >5.0f}, "