Skip to content

Commit 02069c9

Browse files
author
Thinh Nguyen
committed
bugfix in triggering pykilosort
1 parent da10c66 commit 02069c9

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

element_array_ephys/ephys_no_curation.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -591,6 +591,7 @@ def make(self, key):
591591

592592
# add additional probe-recording and channels details into `params`
593593
params = {**params, **get_recording_channels_details(key)}
594+
params['fs'] = params['sample_rate']
594595

595596
if acq_software == 'SpikeGLX':
596597
spikeglx_meta_filepath = get_spikeglx_meta_filepath(key)

element_array_ephys/readers/kilosort_triggering.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ def run_pykilosort(continuous_file, kilosort_output_directory, params,
404404

405405
probe = pykilosort.Bunch()
406406
channel_count = len(channel_ind)
407-
probe.Nchan = channel_count
407+
probe.NchanTOT = channel_count
408408
probe.chanMap = np.arange(0, channel_count, dtype='int')
409409
probe.xc = x_coords
410410
probe.yc = y_coords

0 commit comments

Comments
 (0)