Skip to content

PR3: napari widget button for plate overview - #13

Merged
ferrinm merged 1 commit into
mainfrom
feat/plate-overview
May 20, 2026
Merged

PR3: napari widget button for plate overview#13
ferrinm merged 1 commit into
mainfrom
feat/plate-overview

Conversation

@ferrinm

@ferrinm ferrinm commented May 20, 2026

Copy link
Copy Markdown
Owner

Closes #10. Part of #7.

Summary

  • Adds a "Generate plate overview" button to PhenixDataLoaderWidget (new "Plate Overview" collapsible section, near "Save Options").
  • Button is disabled until an experiment is loaded (wired through _set_controls_enabled).
  • On click: opens QFileDialog.getExistingDirectory() defaulting to the experiment directory, calls generate_plate_overview(experiment_path, output_dir) with the function's defaults, then opens the chosen directory in the host OS file viewer (macOS open, Linux xdg-open, Windows explorer).
  • Status message shown via a small label in the new section + napari notifications.

Test plan

  • pytest-qt test mocks QFileDialog + subprocess.run, asserts generate_plate_overview is called with (experiment_path, chosen_dir) and that the OS-open command includes the chosen dir
  • test verifies cancelled dialog is a no-op
  • test verifies clicking without a loaded experiment shows a warning
  • test_set_controls_enabled updated to cover the new button
  • all 55 existing tests still pass

🤖 Generated with Claude Code

Closes #10. Adds a "Generate plate overview" button to
PhenixDataLoaderWidget that prompts for an output directory,
calls generate_plate_overview() with defaults, and opens the
result in the OS file viewer.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@ferrinm
ferrinm merged commit 07e66a4 into main May 20, 2026
13 checks passed
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.

PR3: napari widget button for plate overview

1 participant