Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Put get_extension (to trigger auto-import) before get_children_dependencies for deleting Analyzer extensions to prevent KeyError #2888

Merged
merged 1 commit into from
May 21, 2024

Conversation

zm711
Copy link
Collaborator

@zm711 zm711 commented May 20, 2024

Fixes #2887

Issue

See #2887. But the issue is delete on recompute won't work for non-core extensions since the get_child_dependencies won't have the other extensions registered. We either need to flip the order (which I want to test with this PR) or fix the error messaging for this case.

Logic is that getting the class_extension should register it, which would allow us to delete on recompute.

@zm711 zm711 marked this pull request as ready for review May 20, 2024 19:08
@zm711 zm711 changed the title Get extension (to trigger auto-import) before deleting for Analyzer extensions Put get_extension (to trigger auto-import) before get_children_dependencies for deleting Analyzer extensions to prevent KeyError May 20, 2024
@alejoe91 alejoe91 added the core Changes to core module label May 21, 2024
@alejoe91
Copy link
Member

Thanks for tracking this down @zm711

LGTM

@samuelgarcia
Copy link
Member

Bravo. Not easy to catch.

@samuelgarcia samuelgarcia merged commit 35d0edd into SpikeInterface:main May 21, 2024
11 checks passed
@zm711 zm711 deleted the test-fix-2887 branch May 21, 2024 10:44
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.

SortingAnalyzer .compute("spike_amplitudes") error
3 participants