Closed weiglszonja closed 2 months ago
It looks like this might be an issue with pyopenephys, written by @alejoe91 (who is currently on vacation). @weiglszonja, could you please open a sister issue there and link it back to here?
It looks like pyopenephys intentionally does not support binary data with > 1 events folder:
It looks like pyopenephys intentionally does not support binary data with > 1 events folder:
Yeah right, but it seems like we're using it to get the session_start_time
:
so maybe there could be a workaround to still fetch that; or better if we could retrieve this from OpenEphysBinaryRecordingExtractor
(but looking at raw_annotations
suggests this can't be parsed from the extractor)
Hmm, well first of all, let's try our best not to access private attributes. Private attributes can be removed without warning, which would break our code.
Second, yes, it does seem like there should be a more robust way to access this information. As a quick fix, let's just put this in a try/except, and raise an issue to handle this more robustly in the future.
Would it be bold to parse the settings.xml
file ourselves in NeuroConv for accessing the session_start_time
?
We're using OpenEphysBinaryRecordingExtractor
from spikeinterface for writing the traces, it looks like in NeuroConv we really just care about accessing the DATE
field from the settings.xml
file which happens in pyopenephys
:
https://github.com/CINPLA/pyopenephys/blob/b81e29e852fe3badb0ef7beb9f763e80ead34029/pyopenephys/core.py#L324
oh, yeah, let's just parse it ourselves. If that's really all we use pyopenephys for, that's overkill just to read and parse a date string
What happened?
I tried to use NWB Guide to convert the openephys data from Constantinople lab, but received an error. The data is in OpenEphys binary format and has multiple streams (NIDAQ, AP, LF):
I can parse the stream names with
OpenEphysBinaryRecordingInterface
:However, when I try to initialise the interface, I get an
Exception
that more than one events folder found (see traceback).I haven't seen OpenEphys data with multiple streams, so I would appreciate any suggestions where to start fixing this. @CodyCBakerPhD (maybe @h-mayorquin ) FYI @bendichter
Steps to Reproduce
Traceback
Operating System
macOS
Python Executable
Conda
Python Version
3.11
Package Versions
No response
Code of Conduct