DAQ: fixed bug where raster data collection would crash if img.spots were None
This commit is contained in:
@@ -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]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user