Skip to content

Commit 22997be

Browse files
committed
OSX tests produce slightly different coordinates
1 parent e03c8c9 commit 22997be

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/test_systemprepare.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import numpy as np
44
import os
55
import pytest
6+
import sys
67

78
curr_dir = os.path.dirname(os.path.abspath(__file__))
89

@@ -61,8 +62,12 @@ def _compare_results(refpdb, refdf_f, pmol: Molecule, df):
6162
refmol = Molecule(refpdb)
6263
refmol.filter("not water", _logger=False)
6364
pmol.filter("not water", _logger=False)
65+
coords_prec = 1e-3
66+
if sys.platform == "darwin":
67+
coords_prec = 5e-3
68+
6469
assert mol_equal(
65-
refmol, pmol, exceptFields=["serial"], fieldPrecision={"coords": 1e-3}
70+
refmol, pmol, exceptFields=["serial"], fieldPrecision={"coords": coords_prec}
6671
), f"Failed comparison of {refpdb} vs {pmol.fileloc}"
6772

6873

0 commit comments

Comments
 (0)