From 796cafd8536f7429c80d84b19c19db24a6a95fb8 Mon Sep 17 00:00:00 2001
From: Paul McCarthy <pauld.mccarthy@gmail.com>
Date: Tue, 19 Apr 2016 15:10:11 +0100
Subject: [PATCH] Avoiding deprecation warning.

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

diff --git a/fsl/data/atlases.py b/fsl/data/atlases.py
index a17ca031b..5982473ed 100644
--- a/fsl/data/atlases.py
+++ b/fsl/data/atlases.py
@@ -406,7 +406,7 @@ class ProbabilisticAtlas(Atlas):
                   location is out of bounds.
         """
         voxelLoc = transform.transform([worldLoc], self.worldToVoxMat.T)[0]
-        voxelLoc = voxelLoc.round()
+        voxelLoc = [int(v) for v in voxelLoc.round()]
 
         if voxelLoc[0] <  0             or \
            voxelLoc[1] <  0             or \
-- 
GitLab