We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 400a12c commit a05c3c3Copy full SHA for a05c3c3
neo/rawio/openephysbinaryrawio.py
@@ -214,7 +214,12 @@ def _parse_header(self):
214
if k in ('timestamps', ):
215
continue
216
if k in d:
217
- ev_ann['__array_annotations__'][k] = d[k]
+ # split custom dtypes into separate annotations
218
+ if d[k].dtype.names:
219
+ for name in d[k].dtype.names:
220
+ ev_ann['__array_annotations__'][name] = d[k][name].flatten()
221
+ else:
222
+ ev_ann['__array_annotations__'][k] = d[k]
223
224
def _segment_t_start(self, block_index, seg_index):
225
return self._t_start_segments[block_index][seg_index]
0 commit comments