Skip to content

Fix legacy Mahalanobis metric parameters on load - #4892

Open
AtomicGlance wants to merge 5 commits into
SpikeInterface:mainfrom
AtomicGlance:fix-4742-legacy-metric-params
Open

AtomicGlance wants to merge 5 commits into
SpikeInterface:mainfrom
AtomicGlance:fix-4742-legacy-metric-params

Conversation

@AtomicGlance

@AtomicGlance AtomicGlance commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Older saved waveform extractors can retain isolation_distance and l_ratio parameter keys after their metric names have been migrated to mahalanobis. This change migrates the parameter keys too. If the legacy configurations disagree, loading continues with the isolation_distance parameters and emits a warning explaining that choice.

The existing legacy-loading regression test checks the migrated keys and verifies that conflicting settings produce the warning without preventing the analyzer from loading.

Validation: the compatibility test module passed locally on Windows (2 passed, 1 skipped). The new conflict case failed with the previous exception and passed after the change. CI is rerunning.

Addresses #4742.

@alejoe91 alejoe91 added the metrics Related to metrics module label Oct 23, 2026
Comment thread src/spikeinterface/metrics/quality/quality_metrics.py Outdated
Comment thread .github/scripts/serialization/test_cross_version_compatibility.py Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

metrics Related to metrics module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants