Skip to content

fix(registration): cap default slice count in registration progress plot - #419

Open
sdiebolt wants to merge 3 commits into
mainfrom
worktree-agent-a94f5df21428d8745
Open

fix(registration): cap default slice count in registration progress plot#419
sdiebolt wants to merge 3 commits into
mainfrom
worktree-agent-a94f5df21428d8745

Conversation

@sdiebolt

Copy link
Copy Markdown
Member

Summary

  • register_volume's live progress plot rendered every slice of the composite fixed/moving mosaic, which was slow and hard to read for volumes with many slices.
  • MatplotlibRegistrationProgressPlotter now caps the mosaic at 9 evenly spaced slices by default (a 3x3 grid), exposed as a new max_composite_slices parameter on register_volume (None restores plotting every slice). The napari progress factory gained the same parameter, kept inert, for call-signature compatibility.

Closes #368

register_volume's live progress plot rendered every slice of the composite
fixed/moving mosaic, which was slow and hard to read for volumes with many
slices. MatplotlibRegistrationProgressPlotter now caps the mosaic at 12
evenly spaced slices by default (a readable 4x3 grid), exposed as a new
max_composite_slices parameter on register_volume (None restores plotting
every slice). The napari progress factory gained the same parameter, kept
inert, for call-signature compatibility with register_volume's
progress_plotter contract.

Fixes #368.
9 slices lay out cleanly as 3x3, a more compact default than 12 (4x3).
@sdiebolt sdiebolt added the bug Something isn't working label Aug 28, 2026
@sdiebolt sdiebolt self-assigned this Aug 28, 2026
@codecov

codecov Bot commented Aug 28, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

register_volume progress plotter should not plot all slices

2 participants