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
Model registry
Operate
Environments
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
FSL
fslpy
Commits
522c4ed4
Commit
522c4ed4
authored
7 years ago
by
Paul McCarthy
Browse files
Options
Downloads
Patches
Plain Diff
Nifti1Image.get_header method is deprecated
parent
ae3d65d9
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
fsl/data/image.py
+1
-1
1 addition, 1 deletion
fsl/data/image.py
fsl/data/imagewrapper.py
+1
-1
1 addition, 1 deletion
fsl/data/imagewrapper.py
with
2 additions
and
2 deletions
fsl/data/image.py
+
1
−
1
View file @
522c4ed4
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
fsl/data/imagewrapper.py
+
1
−
1
View file @
522c4ed4
...
...
@@ -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
'
])
...
...
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