Made test more robust again

master
Per A Brodtkorb 9 years ago
parent 1863b2233f
commit 5a6b1a6a3a

@ -23,7 +23,7 @@ def test_rind():
rind = Rind() rind = Rind()
E0, err0, terr0 = rind(Sc, m, Blo, Bup, indI) E0, err0, terr0 = rind(Sc, m, Blo, Bup, indI)
assert(np.abs(E0 - Et) < err0 + terr0) assert(np.abs(E0 - Et) < 2*(err0 + terr0))
t = 'E0 = %2.5f' % E0 t = 'E0 = %2.5f' % E0
t_true = 'E0 = %2.5f' % Et t_true = 'E0 = %2.5f' % Et

Loading…
Cancel
Save