Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fslpy
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
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
fslpy
Commits
777ce9a5
Commit
777ce9a5
authored
5 years ago
by
Paul McCarthy
Browse files
Options
Downloads
Patches
Plain Diff
TEST: Adjust image save test. Was I testing the wrong reference here? I have
no idea
parent
a040a24f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test_image.py
+8
-6
8 additions, 6 deletions
tests/test_image.py
with
8 additions
and
6 deletions
tests/test_image.py
+
8
−
6
View file @
777ce9a5
...
...
@@ -1098,14 +1098,16 @@ def _test_Image_save(imgtype):
# Load the image back in
img2
=
fslimage
.
Image
(
img
.
dataSource
)
assert
img
.
saveState
assert
img
.
dataSource
==
expDataSource
assert
img
2
.
saveState
assert
img
2
.
dataSource
==
expDataSource
if
imgtype
>
0
:
assert
np
.
all
(
np
.
isclose
(
img
.
voxToWorldMat
,
xform
))
for
i
in
(
img
,
img2
):
if
imgtype
>
0
:
assert
np
.
all
(
np
.
isclose
(
i
.
voxToWorldMat
,
xform
))
for
(
x
,
y
,
z
),
v
in
zip
(
rvoxs
,
rvals
):
assert
np
.
isclose
(
img
[
x
,
y
,
z
],
v
)
for
(
x
,
y
,
z
),
v
in
zip
(
rvoxs
,
rvals
):
assert
np
.
isclose
(
i
[
x
,
y
,
z
],
v
)
img
=
None
img2
=
None
...
...
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