Skip to content

Commit b6f8f99

Browse files
author
Thinh Nguyen
committed
minor bugfix in running pykilosort
1 parent 96931a4 commit b6f8f99

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

element_array_ephys/readers/kilosort_triggering.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ def run_pykilosort(continuous_file, kilosort_output_directory, params,
405405
probe = pykilosort.Bunch()
406406
channel_count = len(channel_ind)
407407
probe.Nchan = channel_count
408-
probe.chanMap = np.arange(0, channel_count, dtype='float64')
408+
probe.chanMap = np.arange(0, channel_count, dtype='int')
409409
probe.xc = x_coords
410410
probe.yc = y_coords
411411
probe.kcoords = shank_ind
@@ -415,7 +415,9 @@ def run_pykilosort(continuous_file, kilosort_output_directory, params,
415415
output_dir=kilosort_output_directory,
416416
probe=probe,
417417
params=params,
418-
n_channels=385, dtype=np.int16, sample_rate=sample_rate)
418+
n_channels=probe.Nchan,
419+
dtype=np.int16,
420+
sample_rate=sample_rate)
419421

420422

421423
def _get_kilosort_repository(KS2ver):

0 commit comments

Comments
 (0)