@@ -100,9 +100,7 @@ def make(self, key):
100
100
).fetch1 ("clustering_method" , "acq_software" , "clustering_output_dir" , "params" )
101
101
102
102
# Get sorter method and create output directory.
103
- sorter_name = (
104
- "kilosort2_5" if clustering_method == "kilosort2.5" else clustering_method
105
- )
103
+ sorter_name = clustering_method .replace ("." , "_" )
106
104
107
105
for required_key in (
108
106
"SI_SORTING_PARAMS" ,
@@ -209,9 +207,7 @@ def make(self, key):
209
207
output_dir = find_full_path (ephys .get_ephys_root_data_dir (), output_dir )
210
208
211
209
# Get sorter method and create output directory.
212
- sorter_name = (
213
- "kilosort2_5" if clustering_method == "kilosort2.5" else clustering_method
214
- )
210
+ sorter_name = clustering_method .replace ("." , "_" )
215
211
recording_file = output_dir / sorter_name / "recording" / "si_recording.pkl"
216
212
si_recording : si .BaseRecording = si .load_extractor (recording_file )
217
213
@@ -264,10 +260,7 @@ def make(self, key):
264
260
output_dir = find_full_path (ephys .get_ephys_root_data_dir (), output_dir )
265
261
266
262
# Get sorter method and create output directory.
267
- sorter_name = (
268
- "kilosort2_5" if clustering_method == "kilosort2.5" else clustering_method
269
- )
270
-
263
+ sorter_name = clustering_method .replace ("." , "_" )
271
264
output_dir = find_full_path (ephys .get_ephys_root_data_dir (), output_dir )
272
265
recording_file = output_dir / sorter_name / "recording" / "si_recording.pkl"
273
266
sorting_file = output_dir / sorter_name / "spike_sorting" / "si_sorting.pkl"
0 commit comments