Skip to content

Add regression test for GH-4508 (deprecated metric names in legacy WE folders)#4514

Merged
chrishalcrow merged 4 commits intoSpikeInterface:mainfrom
galenlynch:testing/waveformextractor-backcompat
Apr 17, 2026
Merged

Add regression test for GH-4508 (deprecated metric names in legacy WE folders)#4514
chrishalcrow merged 4 commits intoSpikeInterface:mainfrom
galenlynch:testing/waveformextractor-backcompat

Conversation

@galenlynch
Copy link
Copy Markdown
Contributor

  • Adds a synthetic legacy WaveformExtractor fixture with deprecated quality_metrics (l_ratio, isolation_distance, qm_params) and template_metrics (peak_to_valley, peak_trough_ratio, metrics_kwargs) params
  • Verifies load_waveforms_backwards loads without ValueError and that deprecated names are migrated by the compat handler before validation

Testing

Addresses: #4509 (comment)

galenlynch and others added 3 commits April 14, 2026 12:50
…c names in legacy WE folders)

Builds a synthetic legacy WaveformExtractor folder with deprecated
quality_metrics (l_ratio, isolation_distance, qm_params) and
template_metrics (peak_to_valley, peak_trough_ratio, metrics_kwargs)
params, then verifies load_waveforms_backwards loads it and migrates
the deprecated names before validation.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Needed to mock deprecated WaveformExtractor data
Comment thread pyproject.toml
@alejoe91 alejoe91 added the core Changes to core module label Apr 17, 2026
@chrishalcrow chrishalcrow merged commit 91889c4 into SpikeInterface:main Apr 17, 2026
15 checks passed
@galenlynch galenlynch deleted the testing/waveformextractor-backcompat branch April 17, 2026 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Changes to core module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants