File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1272,13 +1272,16 @@ def _plot_topomap(
12721272
12731273 # check if there is only 1 channel type, and n_chans matches the data
12741274 ch_type = pos .get_channel_types (picks = None , unique = True )
1275- info_help = "Pick Info with e.g. mne.pick_info and mne.channel_indices_by_type."
1275+ info_help = (
1276+ "Pick the Info object "
1277+ "(e.g., using mne.pick_info and mne.channel_indices_by_type)."
1278+ )
12761279 if len (ch_type ) > 1 :
1277- raise ValueError ("Multiple channel types in Info structure. " + info_help )
1280+ raise ValueError (f "Multiple channel types in Info object. { info_help } " )
12781281 elif len (pos ["chs" ]) != data .shape [0 ]:
12791282 raise ValueError (
12801283 f"Number of channels in the Info object ({ len (pos ['chs' ])} ) and the "
1281- f"data array ({ data .shape [0 ]} ) do not match." + info_help
1284+ f"data array ({ data .shape [0 ]} ) do not match. { info_help } "
12821285 )
12831286 else :
12841287 ch_type = ch_type .pop ()
You can’t perform that action at this time.
0 commit comments