From 0ab31648e8d0a569112cadec2d20cb20a07ee2ba Mon Sep 17 00:00:00 2001 From: Paul McCarthy <pauldmccarthy@gmail.com> Date: Mon, 27 Jan 2020 10:44:35 +0000 Subject: [PATCH] BF: wrong data object --- fsl/utils/image/resample.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fsl/utils/image/resample.py b/fsl/utils/image/resample.py index 02a946f39..371e87b60 100644 --- a/fsl/utils/image/resample.py +++ b/fsl/utils/image/resample.py @@ -206,7 +206,7 @@ def resample(image, # same shape and identity matrix? the # image doesn't need to be resampled - if np.all(np.isclose(image.shape, newShape)) and \ + if np.all(np.isclose(data.shape, newShape)) and \ np.all(np.isclose(matrix, np.eye(len(newShape) + 1))): return data, image.voxToWorldMat -- GitLab