Skip to content

Check for SortingAnalyzer return_scaled in template_tools#2752

Merged
alejoe91 merged 3 commits intoSpikeInterface:mainfrom
zm711:template-tools
Apr 29, 2024
Merged

Check for SortingAnalyzer return_scaled in template_tools#2752
alejoe91 merged 3 commits intoSpikeInterface:mainfrom
zm711:template-tools

Conversation

@zm711
Copy link
Copy Markdown
Member

@zm711 zm711 commented Apr 24, 2024

Fixes #2751.

As the issue states there is a problem if the end-user sets the global SortingAnalyzer return_scaled=False because in template tools it checks to make sure that get_template_amplitudes has the same return_scaled as the SortingAnalyzer. But the default is True for the function.

In this PR we use the SortingAnalyzer.return_scaled if it is a sorting analyzer and True if it is Templates which was the previous default. We missed this because return_scaled=True is the default for the SortingAnalyzer which wouldn't trigger this.

@zm711 zm711 added bug Something isn't working core Changes to core module labels Apr 24, 2024
@alejoe91 alejoe91 merged commit c6f8f1f into SpikeInterface:main Apr 29, 2024
@samuelgarcia
Copy link
Copy Markdown
Member

Merci beaucoup!

@zm711 zm711 deleted the template-tools branch April 29, 2024 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working core Changes to core module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Scale setting for sorting analyzer extension

3 participants