From aa7930301ccda48266f31c34686148a3133a399a Mon Sep 17 00:00:00 2001 From: Paul McCarthy <pauldmccarthy@gmail.com> Date: Wed, 13 Dec 2017 18:32:52 +1030 Subject: [PATCH] Image.dtype method uses imagewrapper instead of nibImage.dataobj, as the image might be in memory. --- fsl/data/image.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fsl/data/image.py b/fsl/data/image.py index a5791d458..bc1857e29 100644 --- a/fsl/data/image.py +++ b/fsl/data/image.py @@ -1003,7 +1003,7 @@ class Image(Nifti): # Get the data type from the # first voxel in the image coords = [0] * len(self.__nibImage.shape) - return self.__nibImage.dataobj[tuple(coords)].dtype + return self[tuple(coords)].dtype @Nifti.voxToWorldMat.setter -- GitLab