check_for_sampleloss(timestamps: ndarray) ndarray[source]#

Check for sample loss.

Check whether timestamps are equidistantly spaced, it not, it is an indication that sampleloss has occurred whilst recording the demodulator data.

This function assumes that the timestamps originate from continuously saved demodulator data, during which the demodulator sampling rate was not changed.

  • timestamp – a 1-dimensional array containing demodulator timestamps

  • timestamps (ndarray) –


A 1-dimensional array indicating the indices in timestamp where sampleloss has occurred. An empty array is returned in no sampleloss was present.

Return type: