Skip to content

Commit

Permalink
Whitening
Browse files Browse the repository at this point in the history
  • Loading branch information
yger committed Nov 29, 2024
1 parent 0d1907f commit 57a9cc9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/spikeinterface/sorters/internal/spyking_circus2.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 57a9cc9

Please sign in to comment.