Skip to content

silx.math.fit: Fixed Snip cache comparison for changed data lengths - #4751

Open
jdotc1 wants to merge 2 commits into
silx-kit:mainfrom
jdotc1:fix/jdotc1-snip-cache-shapes-20261022
Open

jdotc1 wants to merge 2 commits into
silx-kit:mainfrom
jdotc1:fix/jdotc1-snip-cache-shapes-20261022

Conversation

@jdotc1

@jdotc1 jdotc1 commented Oct 22, 2026

Copy link
Copy Markdown
Contributor

PR summary

Use numpy.array_equal for the Snip cache comparison so changing the fitting range produces a cache miss instead of a broadcasting error. Add changed-length, cache-hit and broadcast-compatible false-hit regressions.

Addresses the fit-range cache-comparison defect in #4609; related cache-state issues remain open.

Validation

2 cache-control tests pass with a deliberately identity-only backend stand-in. Compiled SNIP, FitManager, full silx tests and Ruff were not executed.

This branch has not been deployed

No deployments
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.

1 participant