Skip to content

Commit

Permalink
Merge branch 'detect_min_max' of https://github.com/withmywoessner/mn…
Browse files Browse the repository at this point in the history
…e-python into pr/withmywoessner/12383
  • Loading branch information
withmywoessner committed Jan 23, 2024
2 parents 052dcc6 + 40db187 commit a1e42ed
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mne/evoked.py
Original file line number Diff line number Diff line change
Expand Up @@ -1037,7 +1037,9 @@ def get_peak(
data, _ = _merge_ch_data(data, ch_type, [])
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)
ch_idx, time_idx, max_amp = _get_peak(
data, self.times, tmin, tmax, mode, strict
)

out = (ch_names[ch_idx], time_idx if time_as_index else self.times[time_idx])

Expand Down

0 comments on commit a1e42ed

Please sign in to comment.