diff --git a/src/aarecommon/math/find_xtal.py b/src/aarecommon/math/find_xtal.py index e3f3c1e..848946f 100644 --- a/src/aarecommon/math/find_xtal.py +++ b/src/aarecommon/math/find_xtal.py @@ -324,9 +324,7 @@ def raster_centre_of_mass(result_array, images) -> CenterOfMassModel | None: def raster_highest_score( - images, - min_low_res_spots: float = 10.0, - min_spots_indexed: int = 1, + images, min_low_res_spots: float = 10.0, min_spots_indexed: int = 1 ) -> CenterOfMassModel | None: """Target the grid cell with the highest crystal score. @@ -678,8 +676,7 @@ if __name__ == "__main__": from types import SimpleNamespace as _I def _cell(nx, ny, low, idx, bkg=0): - return _I(nx=nx, ny=ny, number=nx * 3 + ny, - spots_low_res=low, spots_indexed=idx, bkg=bkg) + return _I(nx=nx, ny=ny, number=nx * 3 + ny, spots_low_res=low, spots_indexed=idx, bkg=bkg) # Real crystal at (1,1) -> best cell returned. strong = [_cell(x, y, 0, 0) for x in range(3) for y in range(3)]