Skip to content

Commit aa56418

Browse files
committed
fix missing stream
1 parent febc269 commit aa56418

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

neo/rawio/plexonrawio.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ def _parse_header(self):
263263
else:
264264
# detect groups (aka streams)
265265
all_sig_length = np.asarray(all_sig_length)
266-
266+
267267
# names are WBX, FPX, SPKCX, AI, etc
268268
channels_prefixes = np.asarray([x[:2] for x in sig_channels["name"]])
269269
buffer_stream_groups = set(zip(channels_prefixes, sig_channels["sampling_rate"], all_sig_length))
@@ -276,6 +276,7 @@ def _parse_header(self):
276276
"FP": "FPl-Low Pass Filtered ",
277277
"SP": "SPKC-High Pass Filtered",
278278
"AI": "AI-Auxiliary Input",
279+
"V1": "V1", # TODO determine, possible video
279280
}
280281

281282
# Using a mapping to ensure consistent order of stream_index
@@ -284,17 +285,17 @@ def _parse_header(self):
284285
"FP": "1",
285286
"SP": "2",
286287
"AI": "3",
288+
"V1": "4",
287289
}
288-
290+
289291
signal_streams = []
290292
self._signal_length = {}
291293
self._sig_sampling_rate = {}
292-
293-
294+
294295
for stream_index, (channel_prefix, sr, length) in enumerate(buffer_stream_groups):
295296
stream_name = channel_prefix_to_stream_name[channel_prefix]
296297
stream_id = channel_prefix_to_stream_id[channel_prefix]
297-
298+
298299
mask = (sig_channels["sampling_rate"] == sr) & (all_sig_length == length)
299300
sig_channels["stream_id"][mask] = stream_id
300301

0 commit comments

Comments
 (0)