question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error reading OpenEphys legacy format with neo

See original GitHub issue

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 😉

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:29 (16 by maintainers)

github_iconTop GitHub Comments

1reaction
samuelgarciacommented, Feb 9, 2022

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.

0reactions
alejoe91commented, Oct 28, 2022

@eejd can you open an issue in Neo?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Neo RawIO — Neo 0.11.1 documentation
The neo.rawio is close to what could be a C API for reading data but in ... This class implements the legacy OpenEphys...
Read more >
spikeinterface / - extractors / - neoextractors - Program Talk
There are 2 openephys reader: * OpenEphysLegacyRecordingExtractor: old one aka "open ... This open the openephys "legacy" format: one file per channel.
Read more >
Data format - Open Ephys wiki - Confluence
Open Ephys format stores data in a binary file that contains both the data samples and markers that allow data to be recovered...
Read more >
The Neurodata Without Borders ecosystem for ... - eLife
Having pre-synchronized data in the same format enables faster and less error-prone development of analysis and visualizations tools that ...
Read more >
Data Analysis Framework for Microneurography - ResearchGate
Find, read and cite all the research you need on ResearchGate. ... formats supported by Neo include, e.g., Spike2 and OpenEphys formats ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found