From de5d31cd58ece6d1d19924bbed01bcc4e7988afe Mon Sep 17 00:00:00 2001
From: Paul McCarthy <pauld.mccarthy@gmail.com>
Date: Tue, 14 Jun 2016 16:31:37 +0100
Subject: [PATCH] ImageWrapper.coverage method returns uint32.

---
 fsl/data/imagewrapper.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fsl/data/imagewrapper.py b/fsl/data/imagewrapper.py
index 53b68cc35..591002f45 100644
--- a/fsl/data/imagewrapper.py
+++ b/fsl/data/imagewrapper.py
@@ -271,7 +271,7 @@ class ImageWrapper(notifier.Notifier):
                   array of shape ``(nd, 2)``, where ``nd`` is the number
                   of dimensions in the volume.
         """
-        return self.__coverage[..., vol]
+        return np.array(self.__coverage[..., vol], dtype=np.uint32)
 
     
     def loadData(self):
-- 
GitLab