Skip to content
Snippets Groups Projects
Commit 9a363495 authored by Paul McCarthy's avatar Paul McCarthy
Browse files

Fix to last commit

parent d3a75ad7
No related branches found
No related tags found
No related merge requests found
...@@ -321,19 +321,19 @@ class Nifti(notifier.Notifier): ...@@ -321,19 +321,19 @@ class Nifti(notifier.Notifier):
# but we want the NIFTI codes. So we use # but we want the NIFTI codes. So we use
# the (undocumented) nifti1.unit_codes field # the (undocumented) nifti1.unit_codes field
# to convert back to the raw codes. # to convert back to the raw codes.
xyzUnits = self.header.get_xyzt_units()[0] units = self.header.get_xyzt_units()[0]
xyzUnits = nib.nifti1.unit_codes[xyzUnits] units = nib.nifti1.unit_codes[units]
return units
return xyzUnits
@property
def timeUnits(self): def timeUnits(self):
"""Returns the NIFTI time dimension unit code. """ """Returns the NIFTI time dimension unit code. """
# See xyzUnits # See xyzUnits
timeUnits = self.header.get_xyzt_units()[1] units = self.header.get_xyzt_units()[1]
timeUnits = nib.nifti1.unit_codes[timeUnits] units = nib.nifti1.unit_codes[units]
return timeUnits return units
@property @property
......
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