style: ruff check fix
CI / lint (pull_request) Successful in 19s
CI / test (3.11) (pull_request) Successful in 23s
CI / test (3.12) (pull_request) Successful in 25s
CI / test (3.13) (pull_request) Successful in 30s
Build and Publish / release (push) Failing after 10s
CI / lint (push) Successful in 21s
CI / test (3.11) (push) Successful in 25s
CI / test (3.12) (push) Successful in 25s
CI / test (3.13) (push) Successful in 28s
CI / lint (pull_request) Successful in 19s
CI / test (3.11) (pull_request) Successful in 23s
CI / test (3.12) (pull_request) Successful in 25s
CI / test (3.13) (pull_request) Successful in 30s
Build and Publish / release (push) Failing after 10s
CI / lint (push) Successful in 21s
CI / test (3.11) (push) Successful in 25s
CI / test (3.12) (push) Successful in 25s
CI / test (3.13) (push) Successful in 28s
This commit was merged in pull request #12.
This commit is contained in:
@@ -12,7 +12,7 @@ logger = setup_logger("aareDAQ")
|
||||
def identify_crystal_raster(result, r: RasterGridRequest) -> CenterOfMassModel | None:
|
||||
images = result.images
|
||||
if images and any(getattr(img, "spots_low_res", 0) for img in images):
|
||||
logger.debug(f"Find image by maximum number of low resolution spots")
|
||||
logger.debug("Find image by maximum number of low resolution spots")
|
||||
max_image = max(images, key=lambda img: img.spots_low_res)
|
||||
logger.debug(f"Image with maximum spots_low_res: {max_image}")
|
||||
logger.debug(f"Maximum spots_low_res value: {max_image.spots_low_res}")
|
||||
|
||||
Reference in New Issue
Block a user