mirror of
https://github.com/romanz/amodem.git
synced 2026-03-23 19:01:00 +08:00
sampling: fix off-by-one padding error
This commit is contained in:
@@ -11,7 +11,7 @@ def test_resample():
|
||||
dst = BytesIO()
|
||||
sampling.resample(src=src, dst=dst, df=0.0)
|
||||
y = common.loads(dst.getvalue())
|
||||
err = x[1:len(y)+1] - y
|
||||
err = x[:len(y)] - y
|
||||
assert np.max(np.abs(err)) < 1e-4
|
||||
|
||||
dst = BytesIO()
|
||||
|
||||
Reference in New Issue
Block a user