Skip to content

Commit 1720239

Browse files
committed
fix test
1 parent a926c30 commit 1720239

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

neo/rawio/intanrawio.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ class IntanRawIO(BaseRawIO):
6666
4: 'USB board digital input channel',
6767
5: 'USB board digital output channel'
6868
69-
* For the "header-attached" format to the structure of the digital input and output channels these can be accessed
70-
as one long vector, which must be post-processed.
69+
* For the "header-attached" and "one-file-per-signal" formats, the structure of the digital input and output channels
70+
these can be accessed as one long vector, which must be post-processed.
7171
7272
Examples
7373
--------
@@ -557,6 +557,7 @@ def read_rhs(filename, file_format: str):
557557
channel_number_dict[11] = channel_number_dict[0] # should be one stim / amplifier channel
558558
for chan_info in channels_by_type[0]:
559559
chan_info_stim = dict(chan_info)
560+
name = chan_info["native_channel_name"]
560561
chan_info_stim["native_channel_name"] = name + "_STIM"
561562
chan_info_stim["sampling_rate"] = sr
562563
# stim channel are complicated because they are coded
@@ -568,7 +569,6 @@ def read_rhs(filename, file_format: str):
568569
chan_info_stim["dtype"] = "uint16"
569570
ordered_channels.append(chan_info_stim)
570571
if file_format == "header-attached":
571-
name = chan_info["native_channel_name"]
572572
data_dtype += [(name + "_STIM", "uint16", BLOCK_SIZE)]
573573
else:
574574
data_dtype[11] = "uint16"

neo/test/rawiotest/test_intanrawio.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ class TestIntanRawIO(
1212
rawioclass = IntanRawIO
1313
entities_to_download = ["intan"]
1414
entities_to_test = [
15-
"intan/intan_rhs_test_1.rhs",
16-
"intan/intan_rhd_test_1.rhd",
17-
"intan/intan_fpc_test_231117_052630/info.rhd",
18-
"intan/intan_fps_test_231117_052500/info.rhd",
19-
"intan/intan_fpc_rhs_test_240329_091637/info.rhs",
20-
"intan/intan_fps_rhs_test_240329_091536/info.rhs",
21-
# "intan/rhd_fpc_multistim_240514_082044/info.rhd",
22-
# "intan/rhd_fps_multistim_240514_082044/info.rhd",
15+
"intan/intan_rhs_test_1.rhs", # Format header-attached
16+
"intan/intan_rhd_test_1.rhd", # Format header attach
17+
"intan/intan_fpc_test_231117_052630/info.rhd", # Format one-file-per-channel
18+
"intan/intan_fps_test_231117_052500/info.rhd", # Format one file per signal
19+
"intan/intan_fpc_rhs_test_240329_091637/info.rhs", # Format one-file-per-channel
20+
"intan/intan_fps_rhs_test_240329_091536/info.rhs", # Format one-file-per-signal
21+
# "intan/rhd_fpc_multistim_240514_082044/info.rhd", # Multiple digital channels one-file-per-channel
22+
# "intan/rhd_fps_multistim_240514_082044/info.rhd", # Multiple digital channels one-file-per-signal
2323
]
2424

2525

0 commit comments

Comments
 (0)