diff --git a/fsl/data/imagewrapper.py b/fsl/data/imagewrapper.py index 5e06d5c889d8d460f7b8c85072ffab07516aabf4..d2b4fb9169a862dbb102807a06abba44036bb546 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