Skip to content

Commit

Permalink
Changed MD test numerical tolerance
Browse files Browse the repository at this point in the history
  • Loading branch information
Ziyang HU committed Sep 12, 2023
1 parent f22adc1 commit a6480fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_md.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ def test_md_nvt_nose_hoover(tmp_path: Path, monkeypatch: MonkeyPatch):
dtype=float,
sep=" ",
)
assert np.isclose(logs, ref, rtol=2.1e-3, atol=1e-8).all()
assert np.isclose(logs, ref, rtol=1e-2, atol=1e-7).all()


def test_md_npt_nose_hoover(tmp_path: Path, monkeypatch: MonkeyPatch):
Expand Down Expand Up @@ -273,7 +273,7 @@ def test_md_npt_nose_hoover(tmp_path: Path, monkeypatch: MonkeyPatch):
dtype=float,
sep=" ",
)
assert np.isclose(logs, ref, rtol=2.1e-3, atol=1e-8).all()
assert np.isclose(logs, ref, rtol=1e-2, atol=1e-7).all()


def test_md_crystal_feas_log(
Expand Down

0 comments on commit a6480fd

Please sign in to comment.