Skip to content

Commit

Permalink
TST: Loosened tolerances to allow for numerical errors in testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Fraser-Birks committed Jul 17, 2023
1 parent 63b9776 commit 4e152e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_cauchy_born_corrector.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ def test_fit_taylor_model(self):
[2.03958794e-01,9.12311493e-01,9.12311465e-01,0.00000000e+00,0.00000000e+00,0.00000000e+00],
[0.00000000e+00,-5.55111512e-09,0.00000000e+00,0.00000000e+00,0.00000000e+00,0.00000000e+00],
[1.11022302e-08,0.00000000e+00,0.00000000e+00,0.00000000e+00,0.00000000e+00,0.00000000e+00]])
assert np.allclose(self.cb.grad_f,grad_f,atol=1e-8)
assert np.allclose(self.cb.hess_f,hess_f,atol=1e-8)
assert np.allclose(self.cb.grad_f,grad_f,atol=1e-6)
assert np.allclose(self.cb.hess_f,hess_f,atol=1e-6)

def E_cart3D(self,x,y,z,eps=None):
E = np.zeros([len(x),3,3])
Expand Down

0 comments on commit 4e152e1

Please sign in to comment.