Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fslpy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
Michiel Cottaar
fslpy
Commits
d13df714
Commit
d13df714
authored
7 years ago
by
Paul McCarthy
Browse files
Options
Downloads
Patches
Plain Diff
More nibabel depreaction fixes
parent
a792366c
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
fsl/data/atlases.py
+1
-1
1 addition, 1 deletion
fsl/data/atlases.py
fsl/data/image.py
+1
-1
1 addition, 1 deletion
fsl/data/image.py
with
2 additions
and
2 deletions
fsl/data/atlases.py
+
1
−
1
View file @
d13df714
...
@@ -599,7 +599,7 @@ class Atlas(fslimage.Image):
...
@@ -599,7 +599,7 @@ class Atlas(fslimage.Image):
# Even though all the FSL atlases
# Even though all the FSL atlases
# are in MNI152 space, not all of
# are in MNI152 space, not all of
# their sform_codes are correctly set
# their sform_codes are correctly set
self
.
nibImage
.
get_
header
()
.
set_sform
(
self
.
nibImage
.
header
.
set_sform
(
None
,
code
=
constants
.
NIFTI_XFORM_MNI_152
)
None
,
code
=
constants
.
NIFTI_XFORM_MNI_152
)
self
.
desc
=
atlasDesc
self
.
desc
=
atlasDesc
...
...
This diff is collapsed.
Click to expand it.
fsl/data/image.py
+
1
−
1
View file @
d13df714
...
@@ -1065,7 +1065,7 @@ class Image(Nifti):
...
@@ -1065,7 +1065,7 @@ class Image(Nifti):
nib
.
save
(
self
.
__nibImage
,
filename
)
nib
.
save
(
self
.
__nibImage
,
filename
)
self
.
__fileobj
.
close
()
self
.
__fileobj
.
close
()
self
.
__nibImage
,
self
.
__fileobj
=
loadIndexedImageFile
(
filename
)
self
.
__nibImage
,
self
.
__fileobj
=
loadIndexedImageFile
(
filename
)
self
.
header
=
self
.
__nibImage
.
get_
header
()
self
.
header
=
self
.
__nibImage
.
header
# We have to create a new ImageWrapper
# We have to create a new ImageWrapper
# instance too, as we have just destroyed
# instance too, as we have just destroyed
...
...
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