DAQ: best_res should be min value not max
This commit is contained in:
@@ -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}")
|
||||
|
||||
Reference in New Issue
Block a user