When manually stopping measurement early, the saved measurement contains a bunch of zeros at the begginign of the measurement, so that the number of samples saved equals the n_samples = sample_rate * duration.
It would be better to discard unnecesarry zeros padded at the beggining of the measured data to save space.
When manually stopping measurement early, the saved measurement contains a bunch of zeros at the begginign of the measurement, so that the number of samples saved equals the n_samples = sample_rate * duration.
It would be better to discard unnecesarry zeros padded at the beggining of the measured data to save space.