File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -1272,13 +1272,16 @@ def _plot_topomap(
1272
1272
1273
1273
# check if there is only 1 channel type, and n_chans matches the data
1274
1274
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
+ )
1276
1279
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 } " )
1278
1281
elif len (pos ["chs" ]) != data .shape [0 ]:
1279
1282
raise ValueError (
1280
1283
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 } "
1282
1285
)
1283
1286
else :
1284
1287
ch_type = ch_type .pop ()
You can’t perform that action at this time.
0 commit comments