diff --git a/common/src/aaredaqlib/find_xtal.py b/common/src/aaredaqlib/find_xtal.py index cac88e4f..51c8a6cf 100644 --- a/common/src/aaredaqlib/find_xtal.py +++ b/common/src/aaredaqlib/find_xtal.py @@ -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