From 55cbae2363ef3e829059882115aad6f4db4f3223 Mon Sep 17 00:00:00 2001 From: zm711 <92116279+zm711@users.noreply.github.com> Date: Mon, 20 May 2024 15:00:34 -0400 Subject: [PATCH] switch get and delete for compute one --- src/spikeinterface/core/sortinganalyzer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/spikeinterface/core/sortinganalyzer.py b/src/spikeinterface/core/sortinganalyzer.py index d57df2b5ae..b78a346c02 100644 --- a/src/spikeinterface/core/sortinganalyzer.py +++ b/src/spikeinterface/core/sortinganalyzer.py @@ -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: