Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
FSL
fslpy
Commits
0e2f5e88
Commit
0e2f5e88
authored
Aug 27, 2017
by
Paul McCarthy
🚵
Browse files
Put is4DImage back, but deprecate it
parent
522c4ed4
Changes
2
Hide whitespace changes
Inline
Side-by-side
fsl/data/image.py
View file @
0e2f5e88
...
...
@@ -38,6 +38,7 @@ import string
import
logging
import
six
import
deprecation
import
numpy
as
np
import
nibabel
as
nib
...
...
@@ -458,6 +459,14 @@ class Nifti(notifier.Notifier):
return
len
(
self
.
__shape
)
@
deprecation
.
deprecated
(
deprecated_in
=
'1.1.0'
,
removed_in
=
'1.2.0'
,
details
=
'Use ndims instead'
)
def
is4DImage
(
self
):
"""Returns ``True`` if this image is 4D, ``False`` otherwise. """
return
len
(
self
.
__shape
)
>
3
and
self
.
__shape
[
3
]
>
1
def
getXFormCode
(
self
,
code
=
None
):
"""This method returns the code contained in the NIFTI header,
indicating the space to which the (transformed) image is oriented.
...
...
requirements.txt
View file @
0e2f5e88
six
==1.*
deprecation
=1.*
numpy
==1.*
nibabel
==2.*
indexed_gzip
==0.3.*
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment