From a6e3c2640fb1538f041fad7357cf1f4884a7ab1b Mon Sep 17 00:00:00 2001 From: Pierre Yger Date: Thu, 19 Dec 2024 14:43:31 +0100 Subject: [PATCH] WIP --- src/spikeinterface/sorters/internal/spyking_circus2.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/spikeinterface/sorters/internal/spyking_circus2.py b/src/spikeinterface/sorters/internal/spyking_circus2.py index a4f8209fe0..53e5a5de69 100644 --- a/src/spikeinterface/sorters/internal/spyking_circus2.py +++ b/src/spikeinterface/sorters/internal/spyking_circus2.py @@ -27,7 +27,7 @@ class Spykingcircus2Sorter(ComponentsBasedSorter): "general": {"ms_before": 2, "ms_after": 2, "radius_um": 50}, "sparsity": {"method": "snr", "amplitude_mode": "peak_to_peak", "threshold": 0.25}, "filtering": {"freq_min": 150, "freq_max": 7000, "ftype": "bessel", "filter_order": 2}, - "whitening": {"mode": "local", "regularize": False, "radius_um": 100}, + "whitening": {"mode": "local", "regularize": True, "radius_um": 100}, "detection": {"peak_sign": "neg", "detect_threshold": 4}, "selection": { "method": "uniform", @@ -165,7 +165,7 @@ def _run_from_folder(cls, sorter_output_folder, params, verbose): whitening_kwargs["regularize"] = False if whitening_kwargs["regularize"]: n_jobs = job_kwargs["n_jobs"] - whitening_kwargs["regularize_kwargs"] = {"method": "GraphicalLassoCV", "n_jobs": n_jobs} + whitening_kwargs["regularize_kwargs"] = {"method": "LedoitWolf"} recording_w = whiten(recording_f, **whitening_kwargs) noise_levels = get_noise_levels(recording_w, return_scaled=False, **job_kwargs)