Commit c71c1f4d authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

ENH: Simple Image.iscomplex method

parent c0369c6d
......@@ -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.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment