Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
yger committed Dec 19, 2024
1 parent d18c2ef commit a6e3c26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/spikeinterface/sorters/internal/spyking_circus2.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit a6e3c26

Please sign in to comment.