Apply suggestions from code review of branch fast-stack
Co-authored-by: Julian Stirling <julian@julianstirling.co.uk>
This commit is contained in:
parent
f6cc7403e3
commit
7a7547542c
1 changed files with 1 additions and 1 deletions
|
|
@ -549,7 +549,7 @@ class AutofocusThing(Thing):
|
||||||
sharpest_index = np.argmax(sharpnesses)
|
sharpest_index = np.argmax(sharpnesses)
|
||||||
sharpness_length = len(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:
|
if sharpness_length == 1:
|
||||||
return "success"
|
return "success"
|
||||||
# If testing three images, test if the centre is the sharpest
|
# If testing three images, test if the centre is the sharpest
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue