python
python copied to clipboard
resample return is shifted by one sample
nice library testing resample with short inputs and checking sample alignment, the output is shifted by one sample.
one fix is: offset = numpy.floor((l+nz_pre)/q) - 1