From 0dcfe15b7c5fa9aba3f8d3e27719b5600de93993 Mon Sep 17 00:00:00 2001 From: Dawn Date: Tue, 28 Jul 2026 13:52:57 +0200 Subject: [PATCH] style: ruff format Co-Authored-By: Claude Fable 5 --- src/aarecommon/math/find_xtal.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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)]