Skip to content

Commit 6f26a9f

Browse files
committed
add hint when raising channel mismatch error
1 parent 4240933 commit 6f26a9f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mne_bids/read.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -771,6 +771,8 @@ def _handle_channel_mismatch(raw, on_ch_mismatch, ch_names_tsv, channels_fname):
771771
if on_ch_mismatch == "raise":
772772
raise RuntimeError(
773773
f"Channel mismatch between {channels_fname} and the raw data file detected."
774+
f"Either align channel names in channels.tsv with the raw file, or call "
775+
f"read_raw_bids(on_ch_mismatch='reorder'|'rename') to proceed."
774776
)
775777
warn(
776778
"Channel mismatch between "

0 commit comments

Comments
 (0)