Updates from review, mark tests as allowed to fail

This commit is contained in:
Joe Knapper 2026-04-16 11:49:04 +01:00
parent bc6ea9a1ca
commit 4da8172a16
3 changed files with 85 additions and 68 deletions

View file

@ -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: