Skip to content

Commit 7128e6f

Browse files
authored
add more info to comments
1 parent 8d16d51 commit 7128e6f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

neo/rawio/intanrawio.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -903,11 +903,11 @@ def read_rhs(filename, file_format: str):
903903
channel_number_dict["DC Amplifier channel"] = channel_number_dict["RHS2000 amplifier channel"]
904904

905905
if file_format == "one-file-per-channel":
906-
# There is a way to switch off amplifier and only keep the DC amplifier,
906+
# There is a way to shut off saving amplifier data and only keeping the DC amplifier or shutting off all amplifier file saving,
907907
# so we need to count the number of files we find instead of relying on the header.
908908
raw_file_paths_dict = create_one_file_per_channel_dict_rhs(dirname=filename.parent)
909909
channel_number_dict["Stim channel"] = len(raw_file_paths_dict["Stim channel"])
910-
# Moreover, even if the amplifier channels are on the header their files are dropped
910+
# Moreover, even if the amplifier channels are in the header their files are dropped
911911
channel_number_dict["RHS2000 amplifier channel"] = len(raw_file_paths_dict["RHS2000 amplifier channel"])
912912
else:
913913
channel_number_dict["Stim channel"] = channel_number_dict["RHS2000 amplifier channel"]
@@ -970,7 +970,7 @@ def read_rhs(filename, file_format: str):
970970

971971
# Add stim channels
972972
for chan_info in stream_name_to_channel_info_list["RHS2000 amplifier channel"]:
973-
# stim channels are not always present in the header
973+
# stim channel presence is not indicated in the header so for some formats each amplifier channel has a stim channel, but for other formats this isn't the case.
974974

975975
if file_format == "one-file-per-channel":
976976
# Some amplifier channels don't have a corresponding stim channel,

0 commit comments

Comments
 (0)