mirror of
https://github.com/romanz/amodem.git
synced 2026-03-18 15:46:01 +08:00
fix UTs
This commit is contained in:
@@ -4,12 +4,10 @@ import numpy as np
|
||||
|
||||
def test_resample():
|
||||
x = np.arange(300)
|
||||
s = sampling.Sampler(x, )
|
||||
s = sampling.Sampler(x)
|
||||
y = np.array(list(s))
|
||||
|
||||
w = s.interp.width
|
||||
x = x[w-1:-w]
|
||||
err = x - y
|
||||
err = x[1:len(y)+1] - y
|
||||
assert np.max(np.abs(err)) < 1e-10
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user