spikeinterface: Error reading OpenEphys legacy format with neo
Hi @samuelgarcia! Here is the issue for the reading of OpenEphys legacy format I told you in Lyon school. The problem come from neo library, the reading is not working if we have CH and ADC channels, but working if we have only one type of channel. The error I got:
File "/datas/Théo/Spikesorting/Test1Spikeinterface.py", line 24, in <module>
recording = se.read_openephys(folder_path)
File "/datas/Théo/Spikesorting/venv/python/lib/python3.8/site-packages/spikeinterface/extractors/neoextractors/openephys.py", line 108, in read_openephys
recording = OpenEphysLegacyRecordingExtractor(folder_path, **kwargs)
File "/datas/Théo/Spikesorting/venv/python/lib/python3.8/site-packages/spikeinterface/extractors/neoextractors/openephys.py", line 38, in __init__
NeoBaseRecordingExtractor.__init__(self, stream_id=stream_id, **neo_kwargs)
File "/datas/Théo/Spikesorting/venv/python/lib/python3.8/site-packages/spikeinterface/extractors/neoextractors/neobaseextractor.py", line 26, in __init__
_NeoBaseExtractor.__init__(self, **neo_kwargs)
File "/datas/Théo/Spikesorting/venv/python/lib/python3.8/site-packages/spikeinterface/extractors/neoextractors/neobaseextractor.py", line 16, in __init__
self.neo_reader.parse_header()
File "/datas/Théo/Spikesorting/venv/python/lib/python3.8/site-packages/neo/rawio/baserawio.py", line 185, in parse_header
self._parse_header()
File "/datas/Théo/Spikesorting/venv/python/lib/python3.8/site-packages/neo/rawio/openephysrawio.py", line 176, in _parse_header
stream_ids = stream_ids[order]
IndexError: index 32 is out of bounds for axis 0 with size 2
It seems that the CH and ADC channels name splitting is wrong. Thank you for help 😉
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 29 (16 by maintainers)
Hi Chris, Cool to see you here. I really to fix this soon. I am procrastinating a bit on that particular point. The todo list is so big! I promise I will do it soon.