From 803a313b826f29d9a8f06975700ca5dca7d00abb Mon Sep 17 00:00:00 2001 From: Filip Leonarski Date: Mon, 20 Oct 2025 17:29:03 +0200 Subject: [PATCH] DAQ: fixed bug where raster data collection would crash if img.spots were None --- 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 1eb493d9..5e0bf959 100644 --- a/common/src/aaredaqlib/find_xtal.py +++ b/common/src/aaredaqlib/find_xtal.py @@ -9,7 +9,7 @@ from aaredaqlib.raster_grid import RasterGridRequest def identify_crystal_raster(result, r: RasterGridRequest): images = result.images - if images and any(img.spots > 0 for img in images): + if images and any(getattr(img, "spots", 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]