Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fslpy
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Contributor analytics
CI/CD 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
Evan Edmond
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):
# 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
timeU
nits
=
self
.
header
.
get_xyzt_units
()[
1
]
timeU
nits
=
nib
.
nifti1
.
unit_codes
[
timeU
nits
]
return
timeU
nits
u
nits
=
self
.
header
.
get_xyzt_units
()[
1
]
u
nits
=
nib
.
nifti1
.
unit_codes
[
u
nits
]
return
u
nits
@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