daq: bug/typo shoud be maximage.nx not .n_x

This commit is contained in:
2025-11-27 13:02:20 +01:00
parent 675f5a7d18
commit 04bae45c8c
+1 -1
View File
@@ -42,7 +42,7 @@ def identify_crystal_raster(result, r: RasterGridRequest) -> CenterOfMassModel |
logger.debug(f"Maximum spots_low_res value: {max_image.spots_low_res}")
logger.debug(f"Maximum image found at grid coordiantes {max_image.nx}, {max_image.ny}")
logger.debug(f"Maximum image found at umL {max_image.nx * r.grid_size_mm.x}, {max_image.ny * r.grid_size_mm.y}")
com = CenterOfMassModel(n_x=max_image.n_x, n_y=max_image.n_y, max_image=max_image.number)
com = CenterOfMassModel(n_x=max_image.nx, n_y=max_image.ny, max_image=max_image.number)
com_mm = com.get_com_mm(r)
grid_mm_x = com_mm.x
grid_mm_y = com_mm.y