File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff 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" ])
You can’t perform that action at this time.
0 commit comments