Skip to content

Non-finite z-score scale is refused as 'spread is zero' #70

Closed

Description

@guijacquemet

normalization._parameters refuses not np.isfinite(scale) or scale <= 0 with one message: "its intensity spread is zero (all pixels have the same value)". A non-finite scale (for example the std of a float64 plane of ±1.7e308 overflowing to inf or nan) is not a zero spread, so the message misdirects the user. Split the two cases and name the overflow (found while reviewing #69; it is the same on main before #69).


Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions