From 0796572cb849e95c71defa675b576ecbc11de2f4 Mon Sep 17 00:00:00 2001 From: appleb_m Date: Mon, 22 Dec 2025 09:39:48 +0100 Subject: [PATCH] DAQ: bug where find_xtal was using spot_count not low_res_spots for the initial check. --- common/src/aaredaqlib/find_xtal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/aaredaqlib/find_xtal.py b/common/src/aaredaqlib/find_xtal.py index 4d366f5f..07d5d430 100644 --- a/common/src/aaredaqlib/find_xtal.py +++ b/common/src/aaredaqlib/find_xtal.py @@ -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", 0) for img in images): + if images and any(getattr(img, "spots_low_res", 0) for img in images): # # indexed_images = [img for img in images if img.index and img.spots_low_res > 4 and img.bkg > 4.5] #