Skip to content

Make version mismatch warning informative and actionable#4505

Merged
alejoe91 merged 4 commits intoSpikeInterface:mainfrom
h-mayorquin:improve-version-mismatch-warning
Apr 17, 2026
Merged

Make version mismatch warning informative and actionable#4505
alejoe91 merged 4 commits intoSpikeInterface:mainfrom
h-mayorquin:improve-version-mismatch-warning

Conversation

@h-mayorquin
Copy link
Copy Markdown
Collaborator

The version mismatch warning in _load_extractor_from_dict told users to downgrade, which is unhelpful when they upgraded on purpose. If the object loads successfully it is probably fine, so the warning should convey two things: that there may be minor differences in default parameters or behavior across versions, and that re-saving the object (via save(), save_to_folder(), or save_to_zarr()) stamps the current version and removes the warning. Known backward-compatibility issues continue to be handled silently by _handle_backward_compatibility.

Closes #4495

The old warning told users to downgrade, which is unhelpful when they
upgraded intentionally. The new message states both the saved and current
versions and tells the user to re-save the object to update it.

Closes SpikeInterface#4495
The old warning told users to downgrade, which is unhelpful when they
upgraded intentionally. The new message states both versions, notes that
there may be minor differences in defaults or behavior, and tells the
user to re-save the object to remove the warning.

Closes SpikeInterface#4495
@alejoe91 alejoe91 added the documentation Improvements or additions to documentation label Apr 13, 2026
Copy link
Copy Markdown
Collaborator Author

@h-mayorquin h-mayorquin left a comment

Choose a reason for hiding this comment

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

After the meeting on 2026-04-16 we decided to remove this as this is too general and the recording and sorting have been more or less table. We should have more specific warnings on the analyzer

@h-mayorquin
Copy link
Copy Markdown
Collaborator Author

h-mayorquin commented Apr 16, 2026

After the meeting on 2026-04-16 we decided to remove this as this is too general and the recording and sorting have been more or less table. We should have more specific warnings on the analyzer @alejoe91 @chrishalcrow

Done.

@chrishalcrow
Copy link
Copy Markdown
Member

Ah! The peace and quiet of no unnecessary warnings

Screenshot 2026-04-17 at 07 51 13

@alejoe91 alejoe91 merged commit 98ee6b4 into SpikeInterface:main Apr 17, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Version Upgrade Warnings

3 participants