Can get_peak function specify the maximum or minimum value?

Evoked.get_peak() can search for peaks in the following ways:

  1. take the absolute value of the data (i.e., turn everything into non-negative values), and find the largest value of that (that’s the default, mode='abs')

  2. only consider positive values (i.e., >0), and find the highest value (mode='pos')

  3. only consider negative values (i.e., <0), and find the smallest value (mode='neg')

There is currently no way to use get_peak() to find the smallest value of a signal that’s always positive; or the largest value of a signal that’s exclusively negative.