Updates from review, mark tests as allowed to fail
This commit is contained in:
parent
bc6ea9a1ca
commit
4da8172a16
3 changed files with 85 additions and 68 deletions
|
|
@ -722,9 +722,9 @@ class AutofocusThing(lt.Thing):
|
|||
|
||||
# Manually test for monotomically increasing or decreasing sharpnesses, as
|
||||
# fitting can struggle with these and their behaviour is simpler to hardcode
|
||||
if np.array_equal(sharpnesses, np.sort(sharpnesses)):
|
||||
if np.all(sharpnesses[:-1] <= sharpnesses[1:]):
|
||||
return "continue", capture_id
|
||||
if np.array_equal(sharpnesses, np.sort(sharpnesses)[::-1]):
|
||||
if np.all(sharpnesses[:-1] >= sharpnesses[1:]):
|
||||
return "restart", capture_id
|
||||
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue