Folding on a period is currently limited to the sample resolution and accumulates error each fold by snapping to the nearest time bin. This should be updated to bin the data in phase bins.