Skip to content

Templates.is_scaled > Templates.is_in_uV#4036

Merged
samuelgarcia merged 5 commits into
SpikeInterface:mainfrom
samuelgarcia:templates_scaled
Jul 24, 2025
Merged

Templates.is_scaled > Templates.is_in_uV#4036
samuelgarcia merged 5 commits into
SpikeInterface:mainfrom
samuelgarcia:templates_scaled

Conversation

@samuelgarcia
Copy link
Copy Markdown
Member

This needed to be done after #3794.
At the moement is is a simple replace in the entire code.
There are many return_scaled to be changed in return_in_uV but @zm711 already started to change some in #4033.
So lets wait #4033 to be merged first and then lets continue working on this.

I think we will need to make some logic for readi backward compatible Templates saved before 0.103.0

@samuelgarcia samuelgarcia added this to the 0.103.0 milestone Jul 7, 2025
@zm711
Copy link
Copy Markdown
Member

zm711 commented Jul 7, 2025

I was just commenting on this deprecation. We hadn't officially discussed deprecation strategy for scaled -> is_in_uV, which I think we should. Agree with backward compatability though! It was a pain once when we did a dep and all my analyzers started erroring. I forget what it was. nbefore maybe?

@h-mayorquin
Copy link
Copy Markdown
Collaborator

This is great, thanks Sam.

@alejoe91 alejoe91 added the core Changes to core module label Jul 17, 2025
Comment thread src/spikeinterface/core/template.py
@samuelgarcia samuelgarcia marked this pull request as ready for review July 21, 2025 16:54
@samuelgarcia
Copy link
Copy Markdown
Member Author

I propose to merge this now because #3923 will need some fixes after, so the sooner the better.
No ?

@samuelgarcia samuelgarcia merged commit 705d194 into SpikeInterface:main Jul 24, 2025
15 checks passed
@samuelgarcia samuelgarcia deleted the templates_scaled branch July 29, 2025 13:45
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