Skip to content
Snippets Groups Projects
Commit c71c1f4d authored by Paul McCarthy's avatar Paul McCarthy :mountain_bicyclist:
Browse files

ENH: Simple Image.iscomplex method

parent c0369c6d
No related branches found
No related tags found
No related merge requests found
...@@ -1195,6 +1195,14 @@ class Image(Nifti): ...@@ -1195,6 +1195,14 @@ class Image(Nifti):
else: return nvals 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 @Nifti.voxToWorldMat.setter
def voxToWorldMat(self, xform): def voxToWorldMat(self, xform):
"""Overrides the :meth:`Nifti.voxToWorldMat` property setter. """Overrides the :meth:`Nifti.voxToWorldMat` property setter.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment