From cdae90013a17c7c4d44e6de2c96f99f91c9a1684 Mon Sep 17 00:00:00 2001 From: Julian Stirling Date: Mon, 23 Jun 2025 16:24:40 +0000 Subject: [PATCH] Modify comment for clarity in the function that copies the lens shading algorithm --- .../things/camera/picamera_recalibrate_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/openflexure_microscope_server/things/camera/picamera_recalibrate_utils.py b/src/openflexure_microscope_server/things/camera/picamera_recalibrate_utils.py index 6b4e0fc0..812f8379 100644 --- a/src/openflexure_microscope_server/things/camera/picamera_recalibrate_utils.py +++ b/src/openflexure_microscope_server/things/camera/picamera_recalibrate_utils.py @@ -501,10 +501,10 @@ def copy_alsc_section(from_tuning: dict, to_tuning: dict): This is done in-place, i.e. modifying to_tuning. """ + # Using Picamera2 function to find the relevant sub-dict for each tuning file from_i = index_of_algorithm(from_tuning["algorithms"], "rpi.alsc") to_i = index_of_algorithm(to_tuning["algorithms"], "rpi.alsc") - # Please excuse the clumsy update-and-delete - this lets us use - # the nice Picamera2 function to find the relevant sub-dict. + # Updating the dictionary in place. to_tuning["algorithms"][to_i] = from_tuning["algorithms"][from_i]