From c4dc357cf35daacc78dadc737675e1324dac9575 Mon Sep 17 00:00:00 2001 From: Joe Knapper Date: Wed, 23 Apr 2025 10:57:56 +0000 Subject: [PATCH] Apply 1 suggestion(s) to 1 file(s) Co-authored-by: Julian Stirling --- src/openflexure_microscope_server/things/smart_scan.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/openflexure_microscope_server/things/smart_scan.py b/src/openflexure_microscope_server/things/smart_scan.py index 8d96927a..f47cbaaf 100644 --- a/src/openflexure_microscope_server/things/smart_scan.py +++ b/src/openflexure_microscope_server/things/smart_scan.py @@ -632,8 +632,7 @@ class SmartScanThing(Thing): if autofocus_sharp_enough: return True, self._stage.position["z"] else: - z = this_xyz[2] - self._stage.move_absolute(z=z) + self._stage.move_absolute(z=this_xyz[2]) self._scan_logger.warning("Could not autofocus after 3 attempts.") return False, self._stage.position["z"]