Skip to content

Show activity dock automatically in automatic GUI segmentation tasks - #1415

Open
titusgriebel wants to merge 4 commits into
computational-cell-analytics:devfrom
titusgriebel:show-activity-dock
Open

titusgriebel wants to merge 4 commits into
computational-cell-analytics:devfrom
titusgriebel:show-activity-dock

Conversation

@titusgriebel

Copy link
Copy Markdown
Contributor

Changes

  • When starting an automatic segmentation, the activity panel (that already shows the progress) is automatically enabled in napari so the user immediately that something happens and progresses. If the activity panel was disabled before, it closes after completion. If it was enabled before, it stays enabled.
  • The progress bar shown in terminal now matches the progress bar shown in GUI. This allows the terminal as an alternative for reading the progress and removes the current overcrowding situation. The remaining stitching progress bars would have to be addressed in bioimage-py.

titusgriebel and others added 4 commits November 11, 2026 10:49
The progress bar of an automatic run is in the napari activity dock,
which is closed by default. Thus users do not see the progress of a
long run, for example APG on a tiled volume.

The dock now opens when an automatic segmentation or tracking run
starts. After the run it closes again if it was closed before. The
dock uses private napari API. Without that API, the run continues
without the dock.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The annotator shows the progress of volume propagation, APG and dense
segmentation in its napari progress bar. Some steps also printed a
terminal progress bar for each run, for example 'propagate in video'
for every propagation pass.

- 'propagate_in_video' gets a 'verbose' parameter.
- 'propagate_prompts' shows the terminal bar only when there is no
  'update_progress' callback. APG passes report their own progress, so
  a pass shows no bar of its own.
- 'run_multicut' takes 'pbar_init' and 'pbar_update'. The annotator
  sends the slice-wise oversegmentation of dense mode to its napari bar.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- The private napari API is used by '_show_activity_dock', not by the
  dock.
- 'run_multicut' documents the callback arguments, and that
  'pbar_init' and 'pbar_update' go together.
- 'propagate_prompts' names the 'None' default of 'verbose'.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The test creates a napari viewer. Every other test that creates a
viewer is skipped on Windows, because the Windows runner cannot run
these GUI tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant