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
9a363495
Commit
9a363495
authored
8 years ago
by
Paul McCarthy
Browse files
Options
Downloads
Patches
Plain Diff
Fix to last commit
parent
d3a75ad7
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
fsl/data/image.py
+7
-7
7 additions, 7 deletions
fsl/data/image.py
with
7 additions
and
7 deletions
fsl/data/image.py
+
7
−
7
View file @
9a363495
...
@@ -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
timeU
nits
=
self
.
header
.
get_xyzt_units
()[
1
]
u
nits
=
self
.
header
.
get_xyzt_units
()[
1
]
timeU
nits
=
nib
.
nifti1
.
unit_codes
[
timeU
nits
]
u
nits
=
nib
.
nifti1
.
unit_codes
[
u
nits
]
return
timeU
nits
return
u
nits
@property
@property
...
...
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