Change np.abs() whit -1*
Created by: GiovanniVolta
Since get_amplitude is looking for the max, it would like a positive signal. But the absolute value is not the right choice since it shifts the baseline. Otherwise I can change np.max() with np.min(). Sorry for the inconvience.
Giovanni