fold_pulsar snr code working (I think)