Skip to content

Commit 91f0d6a

Browse files
committed
fix bug
1 parent 0804d97 commit 91f0d6a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

neo/rawio/blackrockrawio.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -423,11 +423,11 @@ def _parse_header(self):
423423
signal_buffers.append((stream_name, buffer_id))
424424
signal_streams.append((stream_name, stream_id, buffer_id))
425425
for i, chan in enumerate(ext_header):
426-
if spec in ["2.2", "2.3", "3.0"]:
426+
if spec_version in ["2.2", "2.3", "3.0"]:
427427
ch_name = chan["electrode_label"].decode()
428428
ch_id = str(chan["electrode_id"])
429429
units = chan["units"].decode()
430-
elif spec == "2.1":
430+
elif spec_version == "2.1":
431431
ch_name = chan["labels"]
432432
ch_id = str(self.__nsx_ext_header[nsx_nb][i]["electrode_id"])
433433
units = chan["units"]

0 commit comments

Comments
 (0)