Repository navigation
Run summary: every plane of a shown image, and its T, Z, C - #72
Merged
Merged
Conversation
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.openImagereads 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 withaligned: shape [80, 96], expected [3, 80, 96], even though Fiji showed the 3 channels.Change
image_<name>now counts every plane (getStackSize()), and a newdims_<name>givesframes,slicesandchannelsas Fiji shows them.tests/ui_audit_runs.py): builds the shape fromdims_in T, Z, C order, so 4D results are compared too (before, it could only compare up to 3D). Older plugins withoutdims_are compared as before.Checks
tests/lint_groovy.shpasses,tests/ui_audit_logic_check.pyreports 0 failures, andmvn packagebuilds.z:1/20 t:1/4and passes with shape [4, 20, 64, 72]; ZCYX passes with [20, 2, 64, 72].Generated by Claude Code