From 6de2423ffb74245bbb25c241a3bc32218e930e1d Mon Sep 17 00:00:00 2001 From: Paul McCarthy <pauldmccarthy@gmail.com> Date: Fri, 31 May 2019 13:58:23 +0100 Subject: [PATCH] BF: Bug in resample --- 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 8e223c5cd..4ddfd2bc6 100644 --- a/fsl/utils/image/resample.py +++ b/fsl/utils/image/resample.py @@ -164,7 +164,7 @@ def resample(image, if sliceobj is None: sliceobj = slice(None) if dtype is None: dtype = image.dtype - if origin is None: dtype = 'centre' + if origin is None: origin = 'centre' if mode is None: mode = 'nearest' if origin == 'center': origin = 'centre' -- GitLab