Skip to content

Commit 07c61b6

Browse files
robert-grafclaude
andcommitted
style: fix ruff D205 and RUF003 in stitching.py
- Reflow docstring to satisfy D205 (blank line between summary and body) - Replace ambiguous MULTIPLICATION SIGN with ASCII '*' in comment Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 0ebd092 commit 07c61b6

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

‎TPTBox/stitching/stitching.py‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -407,8 +407,9 @@ def _main( # noqa: C901
407407
save: bool = True,
408408
ramp_path=None,
409409
) -> tuple[NII | None, NII | None]:
410-
"""Body of :func:`main`, split out so :func:`main` can wrap it in the
411-
dtype-warning suppression context.
410+
"""Body of :func:`main`, split out for dtype-warning context wrapping.
411+
412+
Split out so :func:`main` can wrap it in the dtype-warning suppression context.
412413
"""
413414
np.set_printoptions(precision=2, floatmode="fixed")
414415
if is_segmentation:
@@ -641,7 +642,7 @@ def _main( # noqa: C901
641642
)
642643
# Aggregate: in-place accumulate `t * occupancy` per chunk instead of
643644
# `np.stack(target_list) * np.stack(occupancy_list)` which would peak at
644-
# ~2 × N × volume of temporary float arrays.
645+
# ~2 * N * volume of temporary float arrays.
645646
target_arr = np.zeros(target_list[0].shape, dtype=dtype2)
646647
if is_segmentation:
647648
for t, o in zip(target_list, occupancy_list):

0 commit comments

Comments
 (0)