Skip to content

Commit a27a012

Browse files
author
Nikhil Chandra
committed
Fixed bug that prevented PL2 spike channels with unsorted spikes from loading properly.
1 parent 60b26d4 commit a27a012

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

neo/rawio/plexon2rawio/plexon2rawio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ def _parse_header(self):
231231
if not (schannel_info.m_ChannelEnabled and schannel_info.m_ChannelRecordingEnabled):
232232
continue
233233

234-
for channel_unit_id in range(schannel_info.m_NumberOfUnits):
234+
for channel_unit_id in range(schannel_info.m_NumberOfUnits+1):
235235
unit_name = f"{schannel_info.m_Name.decode()}.{channel_unit_id}"
236236
unit_id = f"unit{schannel_info.m_Channel}.{channel_unit_id}"
237237
wf_units = schannel_info.m_Units

0 commit comments

Comments
 (0)