From 7b1f1e6a90d0ee4aaf109e15042365a15f87b83c Mon Sep 17 00:00:00 2001 From: Dilawar Singh <dilawars@ncbs.res.in> Date: Thu, 6 Sep 2018 16:03:21 +0530 Subject: [PATCH] atol is set to 1e-5 in test. --- moose-core/tests/python/test_difshells.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/moose-core/tests/python/test_difshells.py b/moose-core/tests/python/test_difshells.py index f9f99c02..2833c920 100644 --- a/moose-core/tests/python/test_difshells.py +++ b/moose-core/tests/python/test_difshells.py @@ -203,8 +203,8 @@ if __name__ == '__main__': for j, buf in enumerate(buftab[i]): res[:, 4 + i * (difbuff_no + 1) + j + 1] = buf.vector header += ' difshell_' + str(i) + '_difbuff_' + str(j) - assert np.isclose(res.mean(), 0.60599), \ + assert np.isclose(res.mean(), 0.60599, atol=1e-5), \ 'Expected 0.60599, got %g' % np.mean(res) - assert np.isclose(np.std(res), 1.9505), \ - 'Expected 1.95053 got %g' % np.std(res) + assert np.isclose(np.std(res), 1.9505, atol=1e-5), \ + 'Expected 1.9505 got %g' % np.std(res) print( 'All done' ) -- GitLab