Skip to content

Commit 28af3ec

Browse files
authored
Fixed bug in maxwellrawio.py that shuffled channels
Fix for issue SpikeInterface/spikeinterface#1691 that reshuffled channels when selecting and concatenating channels from MaxWell recordings.
1 parent 6ce00dc commit 28af3ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

neo/rawio/maxwellrawio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ def _get_analogsignal_chunk(self, block_index, seg_index, i_start, i_stop,
185185
# to be indexed out of order
186186
sorted_channel_indexes = np.sort(channel_indexes)
187187
resorted_indexes = np.array(
188-
[list(channel_indexes).index(ch) for ch in sorted_channel_indexes])
188+
[list(sorted_channel_indexes).index(ch) for ch in channel_indexes])
189189

190190
try:
191191
if resorted_indexes is None:

0 commit comments

Comments
 (0)