style: ruff format
CI / lint (push) Successful in 18s
CI / lint (pull_request) Successful in 17s
CI / test (3.11) (push) Successful in 24s
CI / test (3.12) (push) Successful in 26s
CI / test (3.11) (pull_request) Successful in 21s
CI / test (3.13) (push) Successful in 22s
CI / test (3.13) (pull_request) Successful in 23s
CI / test (3.12) (pull_request) Successful in 26s

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-07-28 13:52:57 +02:00
co-authored by Claude Fable 5
parent e4e4a44868
commit 0dcfe15b7c
+2 -5
View File
@@ -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)]