diff --git a/mne/evoked.py b/mne/evoked.py index 228def2761d..1f694f7c11b 100644 --- a/mne/evoked.py +++ b/mne/evoked.py @@ -1041,7 +1041,12 @@ def get_peak( ch_names = [ch_name[:-1] + "X" for ch_name in ch_names[::2]] ch_idx, time_idx, max_amp = _get_peak( - data, self.times, tmin, tmax, mode, strict=strict, + data, + self.times, + tmin, + tmax, + mode, + strict=strict, ) out = (ch_names[ch_idx], time_idx if time_as_index else self.times[time_idx])