Skip to content

Commit

Permalink
Lower accuracy of set_Gtau_complex_matrix test
Browse files Browse the repository at this point in the history
	This test tends to fail sometimes on different machines
	due to rounding errors. Set the level of accuray to 1e-9 now.
  • Loading branch information
mzingl committed May 25, 2020
1 parent 734bc56 commit d5d7856
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/python/set_G_tau_complex_matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit d5d7856

Please sign in to comment.