I have the following issue. I am recording with OpenEphys v0.7 signal from one probe. However, I have two probes connected in the PXIe board, of which one was disabled.
This edge case seem to break the read_openephys reader. I get the following error in probeinterface:
File "/.../code/spikeinterface/src/spikeinterface/extractors/neoextractors/openephys.py", line 350, in read_openephys
recording = OpenEphysBinaryRecordingExtractor(folder_path, **kwargs)
File "/.../code/spikeinterface/src/spikeinterface/extractors/neoextractors/openephys.py", line 192, in __init__
probe = probeinterface.read_openephys(
File "/.../miniconda3/envs/lab-env/lib/python3.10/site-packages/probeinterface/io.py", line 1597, in read_openephys
name = probe_names_used[probe_idx]
IndexError: index 1 is out of bounds for axis 0 with size 1
I have the following issue. I am recording with OpenEphys
v0.7
signal from one probe. However, I have two probes connected in the PXIe board, of which one was disabled.This edge case seem to break the
read_openephys
reader. I get the following error inprobeinterface
:Indeed, when reading the probes here:
There is no check of whether they are enabled or not, even if disabled probes will not result in a stream and cause the indexing error.
If that is ok I would send a PR to
probeinterface
address this!