Skip to content

Commit

Permalink
Merge pull request #2894 from zm711/simple-docs
Browse files Browse the repository at this point in the history
Add `_params_descriptions` for simple sorter
  • Loading branch information
samuelgarcia authored May 23, 2024
2 parents 74e9dcf + 5d9b1e0 commit 4f0bd0e
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/spikeinterface/sorters/internal/simplesorter.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,23 @@ class SimpleSorter(ComponentsBasedSorter):
"job_kwargs": {"n_jobs": -1, "chunk_duration": "1s"},
}

_params_description = {
"apply_preprocessing": "whether to apply the preprocessing steps, default: False",
"waveforms": "A dictonary containing waveforms params: 'ms_before' (peak of spike) default: 1.0, 'ms_after' (peak of spike) deafult: 1.5",
"filtering": "A dictionary containing bandpass filter conditions, 'freq_min' default: 300 and 'freq_max' default:8000.0",
"detection": (
"A dictionary for specifying the detection conditions of 'peak_sign' (pos or neg) default: 'neg', "
"'detect_threshold' (snr) default: 5.0, 'exclude_sweep_ms' default: 1.5, 'radius_um' default: 150.0"
),
"features": "A dictionary for the PCA specifying the 'n_components, default: 3",
"clustering": (
"A dictionary for specifying the clustering parameters: 'method' (to cluster) default: 'hdbscan', "
"'min_cluster_size' (min number of spikes per cluster) default: 25, 'allow_single_cluster' default: True, "
" 'core_dist_n_jobs' (parallelization) default: -1, cluster_selection_method (for hdbscan) default: leaf"
),
"job_kwargs": "Spikeinterface job_kwargs (see job_kwargs documentation) default 'n_jobs': -1, 'chunk_duration': '1s'",
}

@classmethod
def get_sorter_version(cls):
return "1.0"
Expand Down

0 comments on commit 4f0bd0e

Please sign in to comment.