Skip to content

Fix workshop setup, rendering, and learner feedback issues - #1

Merged
kevin-m-dean merged 2 commits into
mainfrom
kdean/napari-review-fixes
Nov 14, 2026
Merged

kevin-m-dean merged 2 commits into
mainfrom
kdean/napari-review-fixes

Conversation

@kevin-m-dean

Copy link
Copy Markdown
Contributor

Setup could appear successful while the practice sphere was nearly black, particle-size instructions did not change existing points, and exports could crop the selected view or trigger automatic video resizing. This PR fixes those learner-facing failures and the earlier repository review findings while keeping the main lesson usable in 2D.

Changes

  • Set explicit 0–1 contrast limits for the practice sphere in both setup entry points and pause the instructions for visual inspection.
  • Verify every teaching TIFF header, both tables, and recorded file checksums. Preserve incomplete datasets during recovery before extracting a replacement.
  • Capture the native canvas and fit the full view into 640 × 480 with aspect-preserving padding. Apply this to screenshots, acquired-time movies, and all three camera-animation examples; synchronize shared scene frame labels.
  • Preserve projection images, particles, and tracks through the USE_3D = False route, including exports, while skipping camera rotation.
  • Clarify course ZIP versus offline handouts and teaching data, introduce environment/Jupyter/kernel terminology, and add an executable particle-size exercise that affects every frame. Explain selected-point GUI behavior separately.
  • Document the reported Windows warnings without suppressing them and retain the three-hour schedule pending a timed novice rehearsal.

Verification

Local execution on macOS 26.7.3 / Apple Silicon, Python 3.12.11, napari 0.6.6, and PyQt6 6.11.0:

  • NAPARI_WORKSHOP_GUI_TESTS=1 uv run pytest -q: 25 passed, including five desktop cases. Two upstream Python itertools deprecation warnings remain. The five new feedback regressions failed before correction and passed afterward.
  • Ruff lint and format checks passed, along with validation of all five clean source notebooks and the standalone movie encoder check.
  • All four learner notebooks, the instructor solution, and the main lesson's 2D fallback executed in fresh kernels: six successful runs.
  • Reopened all seven exported movies: camera movies had 31 frames at 10 fps; acquired-time movies had 30 frames at 5 fps; every movie was 640 × 480. Checked first/last differences and camera framing against native PNGs; visually inspected the sphere and representative camera views.
  • HTML and offline ZIP built successfully with Sphinx warnings treated as errors. Independent code review found no additional actionable issues.

The existing scoped type check retains six pre-existing pandas/ImageIO inference or stub diagnostics; it is not a configured repository gate. Full results and the platform checklist are in the validation record. Generated notebook outputs and movies remain local and are not committed.

Remaining Windows checks

A physical Windows laptop still needs the complete revised learner path. Record OS, GPU/driver, RAM, display scaling, resolution, and monitor configuration, then check:

  • Bright, rotatable spheres in both setup entry points.
  • Accessible controls and sliders when QWindowsWindow::setGeometry occurs; test the documented restore/resize suggestion.
  • Readable axis labels, overlays, and controls when DirectWrite reports MS Sans Serif. The root cause and any required font correction remain unresolved.
  • All-frame particle sizing and the separate GUI selection procedure.
  • Camera export from a non-square window without a macroblock resizing warning, native Windows MP4 playback, and the complete 2D fallback.

Mac execution and non-GUI CI do not certify these Windows Qt behaviors. Intel Mac, 8 GiB laptop, and timed novice pilots also remain outstanding. Published v0.1.1 ZIPs predate these fixes; a revised course archive/release must be distributed separately.

Reuse analysis

The original review plan and API-changing commit 4aae911 record the rendering repair and pure fit_frame helper. The feedback plan and commit 8caec90 record composition of napari-animation's supported PNG export, fit_frame, and ImageIO instead of a second export API. Camera PNGs are retained for inspection at the cost of additional disk space. The particle exercise needed its own cell, so existing fallback tests now locate scene cells by stable IDs instead of numeric positions. No other deviations.

Preserve native canvas framing with aspect-preserving RGB padding, keep
shared scene frame labels synchronized, verify every teaching image/table,
pause setup instructions for graphics inspection, retain projection layers
through export, and document recovery without overwriting incomplete data.

Reuse analysis:
- Repaired create_scene and export_time_series; added only a pure fit_frame
  pixel transformation shared by notebook PNG and movie exports.
- Composed load_images, load_tables, and download.verified in setup instead
  of introducing another validator or download/repair lifecycle.
- Reused the main notebook's existing projection layers for the 2D route.
- Updated Numpydoc contracts, notebooks, setup/fallback documentation, and
  docs/superpowers/plans/2026-11-14-review-fixes.md with the detailed analysis.

Validation: 20 tests including GUI regressions; all four learner notebooks
and the instructor solution in fresh kernels; main lesson also in 2D;
movie/frame inspections; Ruff; notebook format; Sphinx warnings-as-errors;
cached recovery with the incomplete folder preserved. Apple Silicon only.
Scoped type checking retains six pre-existing pandas/ImageIO diagnostics.
Make the synthetic setup sphere visible with explicit contrast limits in both
entry points. Clarify course ZIP selection and introduce environment/Jupyter
terminology. Add an executable all-frame particle-size exercise and explain
GUI selection behavior. Fit camera-animation PNG frames before encoding and
record the Windows geometry/font checks that remain unverified.

Reuse analysis:
- Composed the supported Animation.animate PNG-directory output, existing
  fit_frame helper, and ImageIO encoder in the three notebook examples.
- Added no parallel export API or interpolation lifecycle.
- Preserved notebook cell IDs and updated the fallback regression to use them.
- Detailed record: docs/superpowers/plans/2026-11-14-feedback-fixes.md.

Validation: 25 tests including five desktop cases; all four learner notebooks,
instructor solution, and main 2D route in fresh kernels; seven decoded movies
with expected counts/fps and 640x480 dimensions; visual sphere/camera checks;
Ruff, clean notebook validation, encoder, and Sphinx/offline ZIP build.
Apple Silicon validation does not certify Windows Qt/font behavior.
@kevin-m-dean
kevin-m-dean merged commit 5669019 into main Nov 14, 2026
3 of 5 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.

1 participant