Skip to content

Commit ff5def4

Browse files
committed
change atol
1 parent 31f5fbb commit ff5def4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

TESTS/unitTests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,13 +360,13 @@ def test11(self):
360360
pyRamp = pt.synthetic_images.ramp((200,200))
361361
pyPyr = pt.pyramids.LaplacianPyramid(pyRamp)
362362
recon = pyPyr.recon_pyr(levels=[1])
363-
np.testing.assert_allclose(matPyr['recon'], recon)
363+
np.testing.assert_allclose(matPyr['recon'], recon, atol=1e-6)
364364
def test12(self):
365365
matPyr = scipy.io.loadmat(op.join(matfiles_path, 'buildLpyr12.mat'))
366366
pyRamp = pt.synthetic_images.ramp((200,200))
367367
pyPyr = pt.pyramids.LaplacianPyramid(pyRamp)
368368
recon = pyPyr.recon_pyr(levels=[0, 2, 4])
369-
np.testing.assert_allclose(matPyr['recon'], recon)
369+
np.testing.assert_allclose(matPyr['recon'], recon, atol=1e-6)
370370

371371
class WpyrTests(unittest.TestCase):
372372
def test0(self):

0 commit comments

Comments
 (0)