Skip to content

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

Open
galenlynch wants to merge 3 commits intoSpikeInterface:mainfrom
galenlynch:testing/waveformextractor-backcompat
Open

Add regression test for GH-4508 (deprecated metric names in legacy WE folders)#4514
galenlynch wants to merge 3 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
]

test_core = [
"pandas<3",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are we not pandas 3 compatible ??

Copy link
Copy Markdown
Contributor Author

@galenlynch galenlynch Apr 15, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's what the rest of the pyproject uses. Not sure if the version cap is needed, but kept it for consistency.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will check this pandas3 soon.

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