Skip to content

Commit

Permalink
Merge pull request #2888 from zm711/test-fix-2887
Browse files Browse the repository at this point in the history
Put get_extension (to trigger auto-import) before get_children_dependencies for deleting Analyzer extensions to prevent KeyError
  • Loading branch information
samuelgarcia authored May 21, 2024
2 parents 024c24a + 55cbae2 commit 35d0edd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/spikeinterface/core/sortinganalyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -921,11 +921,11 @@ def compute_one_extension(self, extension_name, save=True, **kwargs):
>>> wfs = compute_waveforms(sorting_analyzer, **some_params)
"""
extension_class = get_extension_class(extension_name)

for child in _get_children_dependencies(extension_name):
self.delete_extension(child)

extension_class = get_extension_class(extension_name)

if extension_class.need_job_kwargs:
params, job_kwargs = split_job_kwargs(kwargs)
else:
Expand Down

0 comments on commit 35d0edd

Please sign in to comment.