Apply 1 suggestion(s) to 1 file(s)

Co-authored-by: Julian Stirling <julian@julianstirling.co.uk>
This commit is contained in:
Joe Knapper 2025-04-23 10:57:56 +00:00
parent 283a10c560
commit c4dc357cf3

View file

@ -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"]