Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
pyfeeds
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FSL
pyfeeds
Commits
bf65f2b2
Commit
bf65f2b2
authored
2 months ago
by
Paul McCarthy
Browse files
Options
Downloads
Patches
Plain Diff
TEST: Update tests for new eval routine signature
parent
1cbdefa1
No related branches found
No related tags found
1 merge request
!40
RF: Adjust argument order for evaluation routines so they can be used by `feedsRun` scripts
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pyfeeds/tests/test_evaluate.py
+6
-6
6 additions, 6 deletions
pyfeeds/tests/test_evaluate.py
with
6 additions
and
6 deletions
pyfeeds/tests/test_evaluate.py
+
6
−
6
View file @
bf65f2b2
...
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment