Skip to content

Commit 61a7dd6

Browse files
committed
remove spkTh parameter from list
1 parent d114c1f commit 61a7dd6

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

src/spikeinterface/sorters/external/kilosort.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -259,12 +259,7 @@ def _get_specific_options(cls, ops, params) -> dict:
259259

260260
ops["initialize"] = params["initialize"] # 'fromData' or 'no'
261261

262-
# ops["spkTh"] = -params["detect_threshold"] # Original default logic if spkTh was not in _default_params
263-
if params["spkTh"] is None:
264-
ops["spkTh"] = -params["detect_threshold"] # spike threshold in standard deviations (-6)
265-
else:
266-
ops["spkTh"] = params["spkTh"] # Using user-provided or default spkTh from _default_params
267-
262+
ops["spkTh"] = -params["detect_threshold"] # spike threshold in standard deviations (-6)
268263
ops["loc_range"] = params["loc_range"] # ranges to detect peaks; plus/minus in time and channel ([3 1])
269264
ops["long_range"] = params["long_range"] # ranges to detect isolated peaks ([30 6])
270265
ops["maskMaxChannels"] = params["maskMaxChannels"] # how many channels to mask up/down ([5])

0 commit comments

Comments
 (0)