Skip to content

Commit a34e437

Browse files
author
Thinh Nguyen
committed
Update kilosort_triggering.py
1 parent 6fb65b3 commit a34e437

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

element_array_ephys/readers/kilosort_triggering.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -777,8 +777,7 @@ def _write_channel_map_file(
777777

778778
# channels to exclude
779779
mask = get_noise_channels(ap_band_file, channel_count, sample_rate, bit_volts)
780-
bad_channel_ind = np.where(mask is False)[0]
781-
connected[bad_channel_ind] = 0
780+
connected = np.where(mask is False, 0, connected)
782781

783782
mdict = {
784783
"chanMap": chanMap,

0 commit comments

Comments
 (0)