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

More nibabel depreaction fixes

parent a792366c
No related branches found
No related tags found
No related merge requests found
...@@ -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
......
...@@ -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
......
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