From b3648b7e5a712975c32bd3c40e31a32c565686dc Mon Sep 17 00:00:00 2001 From: Paul McCarthy <pauld.mccarthy@gmail.com> Date: Tue, 14 Jun 2016 16:50:28 +0100 Subject: [PATCH] Image wrapper Update data range on write was not clearing volume ranges. --- fsl/data/imagewrapper.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fsl/data/imagewrapper.py b/fsl/data/imagewrapper.py index 591002f45..54bc71289 100644 --- a/fsl/data/imagewrapper.py +++ b/fsl/data/imagewrapper.py @@ -443,7 +443,8 @@ class ImageWrapper(notifier.Notifier): lowVol, highVol = slices[self.__numRealDims - 1] for vol in range(lowVol, highVol): - self.__coverage[:, :, vol] = np.nan + self.__coverage[:, :, vol] = np.nan + self.__volRanges[ vol, :] = np.nan self.__expandCoverage(slices) -- GitLab