Skip to content

Commit

Permalink
Loosen rtol in test
Browse files Browse the repository at this point in the history
  • Loading branch information
bocklund committed Jun 9, 2019
1 parent 18cb874 commit 6975094
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pycalphad/tests/test_equilibrium.py
Original file line number Diff line number Diff line change
Expand Up @@ -508,5 +508,5 @@ def test_charge_balance_constraint():
assert np.allclose(res.NP.values.squeeze()[:2], [0.30164254, 0.69835646])
# site fractions of ND2O3_A
sf = res.Y.values.squeeze()
assert np.allclose(sf[0, :5], [9.79497936e-01, 2.05020639e-02, 1.00000000e+00, 2.05020639e-02, 9.79497936e-01])
assert np.allclose(sf[1, :], [9.99970071e-01, 2.99288042e-05, 3.83395063e-02, 9.61660494e-01, 9.93381787e-01, 6.61821340e-03, 1.00000000e+00, 1.39970285e-03, 9.98600297e-01])
assert np.allclose(sf[0, :5], [9.79497936e-01, 2.05020639e-02, 1.00000000e+00, 2.05020639e-02, 9.79497936e-01], rtol=1e-4)
assert np.allclose(sf[1, :], [9.99970071e-01, 2.99288042e-05, 3.83395063e-02, 9.61660494e-01, 9.93381787e-01, 6.61821340e-03, 1.00000000e+00, 1.39970285e-03, 9.98600297e-01], rtol=1e-4)

0 comments on commit 6975094

Please sign in to comment.