Apply suggestions from code review of branch fast-stack

Co-authored-by: Julian Stirling <julian@julianstirling.co.uk>
This commit is contained in:
Joe Knapper 2025-06-23 10:36:26 +00:00
parent f6cc7403e3
commit 7a7547542c

View file

@ -549,7 +549,7 @@ class AutofocusThing(Thing):
sharpest_index = np.argmax(sharpnesses)
sharpness_length = len(sharpnesses)
# If only testing one image, assume focus succeeded
# If only testing one image, then by definition the sharpest is central
if sharpness_length == 1:
return "success"
# If testing three images, test if the centre is the sharpest