Skip to content

Commit 2152a5e

Browse files
committed
assign a default value to groupless channels
1 parent 2e00c99 commit 2152a5e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

neo/rawio/neuroscoperawio.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,12 @@ def _parse_header(self):
6969

7070
# one unique stream
7171
signal_streams = np.array([('Signals', '0')], dtype=_signal_stream_dtype)
72-
72+
7373
# signals
7474
sig_channels = []
7575
for c in range(nb_channel):
76-
name = 'ch{}grp{}'.format(c, channel_group[c])
76+
name = 'ch{}grp{}'.format(c, channel_group.get(c, 'none'))
77+
7778
chan_id = str(c)
7879
units = 'mV'
7980
offset = 0.

0 commit comments

Comments
 (0)