Skip to content

Commit ed1bfdb

Browse files
committed
tests: relax strictness to 1% (arm macOS has different results)
1 parent d96151b commit ed1bfdb

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

tests/test_qmap.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,12 @@ def test_feat_rating():
136136

137137
qd = qm.get_qmap("fit: rating", qmap_only=True)
138138
vals = qd.flat[~np.isnan(qd.flat)]
139-
assert np.allclose(vals[0], 9.495637970738416), "gray matter"
140-
assert np.allclose(vals[2], 4.9471000727759815), "white matter"
141-
assert np.allclose(vals[1], 2.443830486100795), "background"
139+
assert np.allclose(vals[0], 9.495637970738416,
140+
rtol=1e-2, atol=0), "gray matter"
141+
assert np.allclose(vals[2], 4.9471000727759815,
142+
rtol=1e-2, atol=0), "white matter"
143+
assert np.allclose(vals[1], 2.443830486100795,
144+
rtol=1e-2, atol=0), "background"
142145

143146

144147
def test_feat_rating_nofit():

tests/test_rate_io.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ def test_rate_manager_basic():
8181
assert np.allclose(
8282
np.ndarray.item(rmg.get_rates(which="Extra Trees",
8383
training_set="zef18")),
84-
3.3822603687594004)
84+
3.3822603687594004,
85+
rtol=1e-2, atol=0)
8586

8687

8788
def test_rate_manager_crossval():

0 commit comments

Comments
 (0)