Skip to content

Commit 923109d

Browse files
committed
OpenEphysBinary: do not split ADC streams for OneBox
1 parent f279132 commit 923109d

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

neo/rawio/openephysbinaryrawio.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -159,11 +159,14 @@ def _parse_header(self):
159159
# We then set the stream_id to the sync stream id
160160
channel_stream_id = sync_stream_id
161161

162-
if "ADC" in chan_id:
163-
# These are non-neural channels and their stream should be separated
164-
# We defined their stream_id as the stream_index of neural data plus the number of neural streams
165-
# This is to not break backwards compatbility with the stream_id numbering
166-
channel_stream_id = str(stream_index + len(sig_stream_names))
162+
if "OneBox" not in stream_name:
163+
# If recording system is not OneBox, which has already a separate stream for ADC channels,
164+
# we need to separate ADC channels from neural channels.
165+
if "ADC" in chan_id:
166+
# These are non-neural channels and their stream should be separated
167+
# We defined their stream_id as the stream_index of neural data plus the number of neural streams
168+
# This is to not break backwards compatbility with the stream_id numbering
169+
channel_stream_id = str(stream_index + len(sig_stream_names))
167170

168171
gain = float(chan_info["bit_volts"])
169172
sampling_rate = float(info["sample_rate"])

0 commit comments

Comments
 (0)