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):
# but we want the NIFTI codes. So we use
# the (undocumented) nifti1.unit_codes field
# to convert back to the raw codes.
xyzUnits = self.header.get_xyzt_units()[0]
xyzUnits = nib.nifti1.unit_codes[xyzUnits]
return xyzUnits
units = self.header.get_xyzt_units()[0]
units = nib.nifti1.unit_codes[units]
return units
@property
def timeUnits(self):
"""Returns the NIFTI time dimension unit code. """
# See xyzUnits
timeUnits = self.header.get_xyzt_units()[1]
timeUnits = nib.nifti1.unit_codes[timeUnits]
return timeUnits
units = self.header.get_xyzt_units()[1]
units = nib.nifti1.unit_codes[units]
return units
@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