DAQ: fixed bug where raster data collection would crash if img.spots were None

This commit is contained in:
2025-10-20 17:29:03 +02:00
parent 085b1b966e
commit 803a313b82
+1 -1
View File
@@ -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]