Skip to content

Commit

Permalink
fix: more liberal test
Browse files Browse the repository at this point in the history
  • Loading branch information
oesteban committed Dec 11, 2020
1 parent 32b1b57 commit 3dec166
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdcflows/utils/tests/test_epimanip.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ def test_epi_mask(tmpdir, testdata_dir):
"""Check mask algorithm."""
tmpdir.chdir()
mask = epi_mask(testdata_dir / "epi.nii.gz")
assert np.asanyarray(nb.load(mask).dataobj).sum() == 189052
assert abs(np.asanyarray(nb.load(mask).dataobj).sum() - 189052) < 10

0 comments on commit 3dec166

Please sign in to comment.