DAQ: best_res should be min value not max

This commit is contained in:
2025-10-07 13:16:41 +02:00
parent 3519072651
commit e1fca441d6
+1 -1
View File
@@ -668,7 +668,7 @@ class AareDAQ:
if start_x <= img.nx <= end_x and start_y <= img.ny <= end_y]
print(res_list)
# Best by res, skipping None
best_res = max((img for img in res_list if img.res is not None),
best_res = min((img for img in res_list if img.res is not None),
key=lambda img: img.res,
default=None)
print(f"Best res: {best_res}")