Commit 522c4ed4 authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

Nifti1Image.get_header method is deprecated

parent ae3d65d9
......@@ -819,7 +819,7 @@ class Image(Nifti):
else:
name = 'Nibabel image'
Nifti.__init__(self, nibImage.get_header())
Nifti.__init__(self, nibImage.header)
self.name = name
self.__lName = '{}_{}'.format(id(self), self.name)
......
......@@ -314,7 +314,7 @@ class ImageWrapper(notifier.Notifier):
# header (which may or may not contain
# useful values).
low, high = self.__range
hdr = self.__image.get_header()
hdr = self.__image.header
if low is None: low = float(hdr['cal_min'])
if high is None: high = float(hdr['cal_max'])
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment