@@ -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"
0 commit comments