Fix pykilosort run parameters
@@ -74,7 +74,6 @@ class PyKilosortSorter(BaseSorter):
"do_whitening": 'whether or not to whiten data, if disabled channels are individually z-scored',
"fs": "sample rate",
"probe": 'data type of raw data',
- "n_channels": 'number of channels in the data recording',
"data_dtype": 'data type of raw data',
"save_temp_files": "keep temporary files created while running",
"fshigh": "high pass filter frequency",
@@ -166,15 +165,13 @@ class PyKilosortSorter(BaseSorter):
ks_probe.xcoords = locations[:, 0]
ks_probe.ycoords = locations[:, 1]
-
run(
dat_path,
- params=params,
- probe=ks_probe,
dir_path=output_folder,
- n_channels=num_chans,
- dtype=recording.get_dtype(),
- sample_rate=recording.get_sampling_frequency(),
+ probe=ks_probe,
+ data_dtype=str(recording.get_dtype()),
+ fs=recording.get_sampling_frequency(),
+ **params,
)
@classmethod
@@ -186,4 +183,3 @@ class PyKilosortSorter(BaseSorter):
sorting = KiloSortSortingExtractor(folder_path=output_folder / "output",
keep_good_only=keep_good_only)
return sorting
-
\ No newline at end of file
