diff --git a/src/spikeinterface/sorters/internal/spyking_circus2.py b/src/spikeinterface/sorters/internal/spyking_circus2.py index 99f9c302f7..46f05c2abd 100644 --- a/src/spikeinterface/sorters/internal/spyking_circus2.py +++ b/src/spikeinterface/sorters/internal/spyking_circus2.py @@ -163,6 +163,9 @@ def _run_from_folder(cls, sorter_output_folder, params, verbose): whitening_kwargs["dtype"] = "float32" if num_channels == 1: whitening_kwargs["regularize"] = False + if whitening_kwargs["regularize"]: + n_jobs = job_kwargs['n_jobs'] + whitening_kwargs["regularize_kwargs"] = {"method": "GraphicalLassoCV", "n_jobs" : n_jobs} recording_w = whiten(recording_f, **whitening_kwargs) noise_levels = get_noise_levels(recording_w, return_scaled=False, **job_kwargs)