Skip to content

Fix return in wrong block in get_extension_class#4446

Merged
alejoe91 merged 1 commit into
SpikeInterface:mainfrom
chrishalcrow:fix-extension-bug
Mar 16, 2026
Merged

Fix return in wrong block in get_extension_class#4446
alejoe91 merged 1 commit into
SpikeInterface:mainfrom
chrishalcrow:fix-extension-bug

Conversation

@chrishalcrow
Copy link
Copy Markdown
Member

Bug added in #4406 (sorry!)

Bug is: if you've only imported core, then do analyzer.compute('quality_metrics'), get_extension_class should import the quality metrics module, then return the quality metrics class. Instead, I introduced a bug and it returned None.

Can't figure out how to test this, because it's about which extensions are available depending on which modules have been imported. But in the test suite, we don't have much control over which order modules are imported in.

@chrishalcrow chrishalcrow added the bug Something isn't working label Mar 16, 2026
@alejoe91 alejoe91 added this to the 0.104.0 milestone Mar 16, 2026
@alejoe91 alejoe91 merged commit 5d38178 into SpikeInterface:main Mar 16, 2026
14 of 15 checks passed
@chrishalcrow chrishalcrow deleted the fix-extension-bug branch March 16, 2026 11:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants