get_peak mode=abs gives negative values

Thankyou! I would expect, based on the image above, P1 peaks at 0.097 with a peak value of 1.8microV. So I am trying to find this value and not the trough (probaly going towards N1).
If I run mode=pos I sometimes get a NaN indicating no pos values are found (not in many cases). For my N1 timewindow (130ms - 200ms, mode = neg) I do get a lot of NaN’s. It seem that my N1 is not really negative in my data. See example:
example_neg_n1

I do not know exacly why this is the case. I tried a longer baseline, but this did not had an effect. I did apply current source density conversion, so maybe this can explain? Otherwise my data is, unfortunately, noisy. Since I had this problem, I though having mode=abs will give me no NaN anymore, and more statistical power especially for my N1 component. However, mode=abs is not detecting the peaks I want. Maybe I can try sometime like this: Can get_peak function specify the maximum or minimum value? - #2 by richard