Skip to content

time_series: refuse brightness equalisation that overflows float64 - #114

Merged
guijacquemet merged 1 commit into
mainfrom
claude/time-series-finite
Nov 23, 2026
Merged

guijacquemet merged 1 commit into
mainfrom
claude/time-series-finite

Conversation

@guijacquemet

Copy link
Copy Markdown
Contributor

What

Follow-up to #113, found by an external audit (finding m5).

equalise_brightness([[5e-324], [1.0]], reference=1) accepted the input, because both means are positive. It then returned an infinite factor and infinite pixels. It now raises TimeSeriesError, naming the time points and suggesting histogram matching or no correction.

  • Unchanged: values that were finite are bit-identical, and no other function changes.
  • Contract §3.7 row updated; CHANGELOG (Unreleased).
  • Regression test in tests/test_time_series.py.

Checks

  • python tools/check.py (against this checkout): 2,703 passed, 90 skipped. The skips are the optional scikit-image tests, as on main.

Generated by Claude Code

…ow float64

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01G3qp9AERqtoqUxiixuPVPV
@guijacquemet
guijacquemet merged commit f2aa732 into main Nov 23, 2026
10 checks passed
@guijacquemet
guijacquemet deleted the claude/time-series-finite branch November 23, 2026 18: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