From 9aa878b3dcb06d4aabb2acfcf1be9c39ca28cbf7 Mon Sep 17 00:00:00 2001 From: Paul McCarthy <pauldmccarthy@gmail.com> Date: Mon, 12 Mar 2018 11:09:19 +0000 Subject: [PATCH] Imagewrapper was using its own deprecated function --- fsl/data/imagewrapper.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fsl/data/imagewrapper.py b/fsl/data/imagewrapper.py index 5e06d5c88..d2b4fb916 100644 --- a/fsl/data/imagewrapper.py +++ b/fsl/data/imagewrapper.py @@ -177,6 +177,8 @@ class ImageWrapper(notifier.Notifier): data range is updated directly on reads/writes. """ + import fsl.data.image as fslimage + self.__image = image self.__name = name self.__taskThread = None @@ -205,7 +207,7 @@ class ImageWrapper(notifier.Notifier): # __getitem__ to force the # result to have the correct # dimensionality. - self.__canonicalShape = canonicalShape(image.shape) + self.__canonicalShape = fslimage.canonicalShape(image.shape) # The internal state is stored # in these attributes - they're -- GitLab