Skip to content

Commit 729ce25

Browse files
sappelhofflarsoner
andauthored
DOC: fix missing space, use f-strings, structure->object (#13291)
Co-authored-by: Eric Larson <larson.eric.d@gmail.com>
1 parent a0e5a83 commit 729ce25

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

mne/viz/topomap.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff 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()

0 commit comments

Comments
 (0)