Currently peak detection in resonator spectroscopy is very naively done with min() or max() on the signal after a linear background has been subracted. In some cases the minimum or maximum of the spectrum may correspond to a variation in the background rather than the peak.
To account for this scenario we should at the very least use find_peaks rather than min or max.
Currently peak detection in resonator spectroscopy is very naively done with
min()ormax()on the signal after a linear background has been subracted. In some cases the minimum or maximum of the spectrum may correspond to a variation in the background rather than the peak.To account for this scenario we should at the very least use
find_peaksrather thanminormax.