From d5d78560dc13a8e9e4b941aff566a0c4d80184a0 Mon Sep 17 00:00:00 2001 From: Manuel Zingl Date: Sun, 24 May 2020 20:13:25 -0400 Subject: [PATCH] Lower accuracy of set_Gtau_complex_matrix test This test tends to fail sometimes on different machines due to rounding errors. Set the level of accuray to 1e-9 now. --- test/python/set_G_tau_complex_matrix.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/python/set_G_tau_complex_matrix.py b/test/python/set_G_tau_complex_matrix.py index f3277d4..24f5769 100644 --- a/test/python/set_G_tau_complex_matrix.py +++ b/test/python/set_G_tau_complex_matrix.py @@ -28,7 +28,7 @@ from pytriqs.gf import * noise = 5e-4 -level = 13 +level = 9 def numpy_assert(a, b, dec): return np.testing.assert_almost_equal( a, b, decimal=dec) @@ -90,7 +90,7 @@ def numpy_assert(a, b, dec): return np.testing.assert_almost_equal( save_Gtau[:, 2] = np.imag(G_tau.data[:, i, j]) np.savetxt(fn + str(i) + '_' + str(j) + '.dat', save_Gtau) -def check_elementwise(ew, dec=13): +def check_elementwise(ew, dec=9): for i in [0, 1]: for j in [0, 1]: if i == j: