Selection of particle positions with detect_peaks not consistent
The turn separation calculation in cyclotron.py selects the x-axis crossings with a call to detect_peaks:
pksx = detect_peaks(x, mph=0.04, mpd=100)
This selects (see figure) the cyan points in the PSI Ring model. However, I would expect the red points (indices: firstPoint + turnNr*stepsPerTurn). I think inherently the detect_peaks function can always go wrong. Therefore, I would like to change it to the stepsPerTurn selection.