Skip to content

Commit 2e17b47

Browse files
committed
Some fix
1 parent de8ecb3 commit 2e17b47

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

neo/io/proxyobjects.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ def __init__(self, array_annotations=None, **annotations):
3333
# used to be str so raw bytes
3434
annotations['file_origin'] = str(self._rawio.source_name())
3535

36+
# clean annotations that are not 1D
37+
# TODO change array_annotations handling to avoid that
38+
array_annotations = {k: v for k, v in array_annotations.items() if v.ndim==1}
39+
3640
# this mock the array annotaions to avoid inherits DataObject
3741
self.array_annotations = ArrayDict(self.shape[-1])
3842
if array_annotations is not None:

neo/rawio/openephysbinaryrawio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ def _get_signal_size(self, block_index, seg_index, stream_index):
235235
sigs = self._sig_streams[block_index][seg_index][stream_index]['memmap']
236236
return sigs.shape[0]
237237

238-
def _get_signal_t_start(self, block_index, seg_index, channel_indexes):
238+
def _get_signal_t_start(self, block_index, seg_index, stream_index):
239239
t_start = self._sig_streams[block_index][seg_index][stream_index]['t_start']
240240
return t_start
241241

neo/test/iotest/test_openephysbinaryio.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@
1313

1414
class TestOpenEphysBinaryIO(BaseTestIO, unittest.TestCase, ):
1515
ioclass = OpenEphysBinaryIO
16-
files_to_test = [
17-
'test_multiple_2020-12-17_17-34-35',
18-
]
16+
files_to_test = TestOpenEphysBinaryRawIO.entities_to_test
1917

2018
files_to_download = TestOpenEphysBinaryRawIO.files_to_download
2119

0 commit comments

Comments
 (0)