Skip to content
Snippets Groups Projects
Commit bf65f2b2 authored by Paul McCarthy's avatar Paul McCarthy :mountain_bicyclist:
Browse files

TEST: Update tests for new eval routine signature

parent 1cbdefa1
No related branches found
No related tags found
1 merge request!40RF: Adjust argument order for evaluation routines so they can be used by `feedsRun` scripts
......@@ -76,9 +76,9 @@ def test_evalVectorImage():
nib.Nifti1Image(vecarr1, np.eye(4)).to_filename(fname1)
nib.Nifti1Image(vecarr2, np.eye(4)).to_filename(fname2)
assert evaluate.evalVectorImage(pyf, fname1, fname1) == 0
assert evaluate.evalVectorImage(pyf, fname2, fname2) == 0
assert evaluate.evalVectorImage(pyf, fname1, fname2) != 0
assert evaluate.evalVectorImage(fname1, fname1, pyf=pyf) == 0
assert evaluate.evalVectorImage(fname2, fname2, pyf=pyf) == 0
assert evaluate.evalVectorImage(fname1, fname2, pyf=pyf) != 0
def test_evalImage():
......@@ -95,6 +95,6 @@ def test_evalImage():
nib.Nifti1Image(arr1, np.eye(4)).to_filename(fname1)
nib.Nifti1Image(arr2, np.eye(4)).to_filename(fname2)
assert evaluate.evalImage(pyf, fname1, fname1) == 0
assert evaluate.evalImage(pyf, fname2, fname2) == 0
assert evaluate.evalImage(pyf, fname1, fname2) != 0
assert evaluate.evalImage(fname1, fname1, pyf=pyf) == 0
assert evaluate.evalImage(fname2, fname2, pyf=pyf) == 0
assert evaluate.evalImage(fname1, fname2, pyf=pyf) != 0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment