Skip to content

Commit 475ad78

Browse files
committed
oops
1 parent b8adefb commit 475ad78

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

neo/rawio/intanrawio.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,11 @@ def _parse_header(self):
117117
n_samples = int(os.path.getsize(raw_file_paths_dict[stream_index_key]) / (n_chans * 2))# unit16 2 bytes
118118
if stream_index_key != 6:
119119
self._raw_data[stream_index] = np.memmap(
120-
raw_file_paths_dict[stream_index_key], dtype=[stream_datatype[0]], shape = (n_chans, n_samples), mode="r"
120+
raw_file_paths_dict[stream_index_key], dtype=stream_datatype, shape = (n_chans, n_samples), mode="r"
121121
).T
122122
else:
123123
self._raw_data[stream_index] = np.memmap(
124-
raw_file_paths_dict[stream_index_key], dtype=[stream_datatype[0]], mode="r"
124+
raw_file_paths_dict[stream_index_key], dtype=[stream_datatype], mode="r"
125125
)
126126
# for one-file-per-channel we have one memory map / channel stored as a list / neo stream
127127
else:

0 commit comments

Comments
 (0)