Skip to content

Commit be07506

Browse files
committed
fix for timestamps
1 parent d189489 commit be07506

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

neo/rawio/intanrawio.py

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -146,13 +146,22 @@ def _parse_header(self):
146146
else:
147147
self._raw_data[stream_index] = []
148148
for channel_index, channel_datatype in enumerate(stream_datatype):
149-
self._raw_data[stream_index].append(
150-
np.memmap(
151-
raw_file_paths_dict[stream_index_key][channel_index],
152-
dtype=channel_datatype,
153-
mode="r",
149+
if stream_index_key != 6:
150+
self._raw_data[stream_index].append(
151+
np.memmap(
152+
raw_file_paths_dict[stream_index_key][channel_index],
153+
dtype=channel_datatype,
154+
mode="r",
155+
)
156+
)
157+
else:
158+
self._raw_data[stream_index].append(
159+
np.memmap(
160+
raw_file_paths_dict[stream_index_key][channel_index],
161+
dtype=[channel_datatype],
162+
mode="r",
163+
)
154164
)
155-
)
156165

157166
# check timestamp continuity
158167
if self.file_format == "header-attached":

0 commit comments

Comments
 (0)