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
c71c1f4d
Commit
c71c1f4d
authored
Aug 22, 2019
by
Paul McCarthy
🚵
Browse files
ENH: Simple Image.iscomplex method
parent
c0369c6d
Changes
1
Show whitespace changes
Inline
Side-by-side
fsl/data/image.py
View file @
c71c1f4d
...
...
@@ -1195,6 +1195,14 @@ class Image(Nifti):
else
:
return
nvals
@
property
def
iscomplex
(
self
):
"""Returns ``True`` if this image has a complex data type, ``False``
otherwise.
"""
return
np
.
issubdtype
(
self
.
dtype
,
np
.
complexfloating
)
@
Nifti
.
voxToWorldMat
.
setter
def
voxToWorldMat
(
self
,
xform
):
"""Overrides the :meth:`Nifti.voxToWorldMat` property setter.
...
...
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