Skip to content

Run summary: every plane of a shown image, and its T, Z, C - #72

Merged
guijacquemet merged 2 commits into
mainfrom
claude/keen-mendel-ekvei7
Nov 17, 2026
Merged

guijacquemet merged 2 commits into
mainfrom
claude/keen-mendel-ekvei7

Conversation

@guijacquemet

Copy link
Copy Markdown
Contributor

Goes with CellMigrationLab/LabConstrictor-Tools#165 (Tools 0.3.0a4). There, a result whose axes are known is written as an ImageJ hyperstack, so Fiji shows a time-lapse as frames × slices and a 3-channel result as 3 channels. Nothing changes in how Fiji shows results; IJ.openImage reads the hyperstack by itself.

What was wrong. The run summary (the map the plugin returns to tests and audits; people don't see it) counted a shown image's planes as slices × frames, which leaves channels out. A 3-channel hyperstack was reported as 1 plane, and the UI audit failed with aligned: shape [80, 96], expected [3, 80, 96], even though Fiji showed the 3 channels.

Change

  • Plugin: image_<name> now counts every plane (getStackSize()), and a new dims_<name> gives frames, slices and channels as Fiji shows them.
  • Audit (tests/ui_audit_runs.py): builds the shape from dims_ in T, Z, C order, so 4D results are compared too (before, it could only compare up to 3D). Older plugins without dims_ are compared as before.

Checks

  • tests/lint_groovy.sh passes, tests/ui_audit_logic_check.py reports 0 failures, and mvn package builds.
  • The Fiji UI audit, with this jar, Tools 0.3.0a4 and the Fast4DRegPy app, passes 19/19 twice:
    • with the normal cases (TYX, CYX);
    • with the 3D cases first: TZYX opens as z:1/20 t:1/4 and passes with shape [4, 20, 64, 72]; ZCYX passes with [20, 2, 64, 72].

Generated by Claude Code

…ows them

LabConstrictor-Tools 0.3.0a4 writes a result with known axes as an
ImageJ hyperstack, so Fiji shows a 3-channel result as 3 channels and a
time-lapse as frames x slices. The run summary counted a shown image's
planes as slices x frames, which leaves channels out: an aligned
3-channel image was reported as one plane, and the UI audit failed
('aligned: shape [80, 96], expected [3, 80, 96]') although Fiji showed
it correctly. The summary now counts every plane (getStackSize) and
adds dims_<name> (frames, slices, channels); the audit builds the shape
from them in T, Z, C order, so 4D results are compared too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Scma6VXx7mT1FYsKmB1184
Covers the new branch of compare_result (found by the independent
review): a T x Z result and a 3-channel composite match their shapes in
T, Z, C order, a swapped order is reported, and a summary without dims_
is compared as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Scma6VXx7mT1FYsKmB1184
@guijacquemet
guijacquemet merged commit 2e851d6 into main Nov 17, 2026
7 checks passed
@guijacquemet
guijacquemet deleted the claude/keen-mendel-ekvei7 branch November 17, 2026 10:05
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.

2 participants