Skip to content

Commit d695e87

Browse files
FIX: avoid stale pick indexing in OPM modality check
1 parent 8b9c58d commit d695e87

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

mne/viz/topomap.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2471,8 +2471,8 @@ def plot_evoked_topomap(
24712471
grouped_data = None
24722472
if merge_channels:
24732473
# check modality
2474-
is_opm_picks = len(picks) > 0 and all(
2475-
evoked.info["chs"][pick]["coil_type"] in _opm_coils for pick in picks
2474+
is_opm_picks = len(evoked.info["chs"]) > 0 and all(
2475+
ch["coil_type"] in _opm_coils for ch in evoked.info["chs"]
24762476
)
24772477
if is_opm_picks:
24782478
modality = "opm"

0 commit comments

Comments
 (0)