Skip to content

Refuse incompatible summaries: dimensions, percentile definitions, dtypes - #77

Merged
guijacquemet merged 4 commits into
mainfrom
claude/summary-compat-54-55-56
Nov 7, 2026
Merged

guijacquemet merged 4 commits into
mainfrom
claude/summary-compat-54-55-56

Conversation

@guijacquemet

Copy link
Copy Markdown
Contributor

Fixes #56, fixes #55, fixes #54

One commit per issue, each with a regression test that fails on main; a last small commit documents _summary and lowers the code-rules baseline.

All raise the new IncompatibleSummariesError (a ValueError).

Bitwise result: tools/dump_outputs.py SHA-256 is identical on main (3b5378a) and this branch: dfd5e740e04e16057bc6a017e844ae62cb94025690531b443a9489f52900537e.

Gate: python tools/check.py passes, 675 passed, 2 skipped (csbdeep not installed).


Generated by Claude Code

ImageSummary now checks that its per-channel tuples have one non-zero length,
and intensity_checks refuses summaries with different numbers of channels,
naming the images, instead of skipping the repeat check or raising IndexError.

Fixes #56

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VbytvF3Gsa85ix8Ne2yMDW
intensity_checks compared p_high values of summaries computed at different
percentiles. It now raises IncompatibleSummariesError naming the images and
both percentile pairs.

Fixes #55

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VbytvF3Gsa85ix8Ne2yMDW
The saturated fraction took the pixel type from the first histogram and
applied its maximum to every plane. image_summaries now raises
IncompatibleSummariesError naming the planes and their pixel types.

Fixes #54

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VbytvF3Gsa85ix8Ne2yMDW
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VbytvF3Gsa85ix8Ne2yMDW
@guijacquemet
guijacquemet marked this pull request as ready for review November 7, 2026 02:37
@guijacquemet
guijacquemet merged commit 57cf1a8 into main Nov 7, 2026
8 checks passed
@guijacquemet
guijacquemet deleted the claude/summary-compat-54-55-56 branch November 7, 2026 02:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants