From 2741123cf96422f571368a9864fc4ad1602702ae Mon Sep 17 00:00:00 2001 From: jaknapper Date: Wed, 16 Apr 2025 18:47:47 +0100 Subject: [PATCH] Looping autofocus at the start of the scan --- 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 5d853b69..f0c44d11 100644 --- a/src/openflexure_microscope_server/things/smart_scan.py +++ b/src/openflexure_microscope_server/things/smart_scan.py @@ -225,6 +225,7 @@ class SmartScanThing(Thing): try: self._check_background_and_csm_set() self._ongoing_scan_name = self._get_unique_scan_name_and_dir(scan_name) + self._autofocus.looping_autofocus(dz=self.autofocus_dz, start="centre") # record starting position so we can return there self._starting_position = self._stage.position self._run_scan()