From 845c21c68a10845a6933998a4038ecd6544cb00a Mon Sep 17 00:00:00 2001 From: jaknapper Date: Tue, 13 May 2025 11:32:03 +0100 Subject: [PATCH] Move update data outside of finally block --- src/openflexure_microscope_server/things/smart_scan.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/openflexure_microscope_server/things/smart_scan.py b/src/openflexure_microscope_server/things/smart_scan.py index 9195b344..939abc1f 100644 --- a/src/openflexure_microscope_server/things/smart_scan.py +++ b/src/openflexure_microscope_server/things/smart_scan.py @@ -186,6 +186,7 @@ class SmartScanThing(Thing): # record starting position so we can return there self._starting_position = self._stage.position self._run_scan() + self._update_scan_inputs_json() except Exception as e: # If _scan_data is set then scan started if self._scan_data is not None: