pylint fixes

This commit is contained in:
Roman Zeyde
2014-07-12 08:36:44 +03:00
parent 258953bce0
commit daaaac4318
4 changed files with 14 additions and 7 deletions

View File

@@ -1,6 +1,6 @@
import sampling
import numpy as np
import pylab
def test_resample():
x = np.arange(300)
@@ -12,7 +12,8 @@ def test_resample():
err = x - y
assert np.max(np.abs(err)) < 1e-10
def test_coeffs():
I = sampling.Interpolator(width=4, resolution=16)
err = I.filt[0] - [0,0,0,1,0,0,0,0]
err = I.filt[0] - [0, 0, 0, 1, 0, 0, 0, 0]
assert np.max(np.abs(err)) < 1e-10