Describe the bug
Since 11.1.0, due to the change in openephysbinaryrawio.py, neo/rawio/openephysbinaryrawio.py", line 215, OpenEphys files without events cannot be opened:
File "site-packages/neo/rawio/baserawio.py", line 179, in parse_header
self._parse_header()
File "site-packages/neo/rawio/openephysbinaryrawio.py", line 215, in _parse_header
if states[0] < 0:
File "site-packages/numpy/core/memmap.py", line 334, in getitem
res = super().getitem(index)
IndexError: index 0 is out of bounds for axis 0 with size 0
this:
if states[0] < 0:
in 11.0 used to be :
elif 'states' in d: