You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/spikeinterface/sorters/external/kilosort4.py
+43-22Lines changed: 43 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -65,7 +65,8 @@ class Kilosort4Sorter(BaseSorter):
65
65
"save_preprocessed_copy": False,
66
66
"torch_device": "auto",
67
67
"bad_channels": None,
68
-
"use_binary_file": False,
68
+
"use_binary_file": None,
69
+
"delete_recording_dat": True,
69
70
}
70
71
71
72
_params_description= {
@@ -110,8 +111,10 @@ class Kilosort4Sorter(BaseSorter):
110
111
"save_preprocessed_copy": "save a pre-processed copy of the data (including drift correction) to temp_wh.dat in the results directory and format Phy output to use that copy of the data",
111
112
"torch_device": "Select the torch device auto/cuda/cpu",
112
113
"bad_channels": "A list of channel indices (rows in the binary file) that should not be included in sorting. Listing channels here is equivalent to excluding them from the probe dictionary.",
113
-
"use_binary_file": "If True and the recording is not binary compatible, then Kilosort is written to a binary file in the output folder. If False, the Kilosort is run on the recording object directly using the RecordingExtractorAsArray object. "
114
-
"If the recording is binary compatible, then the sorter will always use the binary file. Default is False.",
114
+
"use_binary_file": "If True then Kilosort is run using a binary file. In this case, if the input recording is not binaru compatible, it is written to a binary file in the output folder. "
115
+
"If False then Kilosort is run on the recording object directly using the RecordingExtractorAsArray object. If None, then if the recording is binary compatible, the sorter will use the binary file, otherwise the RecordingExtractorAsArray. "
116
+
"Default is None.",
117
+
"delete_recording_dat": "If True, if a temporary binary file is created, it is deleted after the sorting is done. Default is True.",
115
118
}
116
119
117
120
sorter_description="""Kilosort4 is a Python package for spike sorting on GPUs with template matching.
0 commit comments