From 947acd3af963eda4f798ba07b04fd2522a838321 Mon Sep 17 00:00:00 2001 From: Paul McCarthy <pauld.mccarthy@gmail.com> Date: Tue, 13 Sep 2016 16:47:48 +0100 Subject: [PATCH] Fix to label atlas lookup - voxel coords not being cast to ints. --- 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 ecb5f0af5..0f885e004 100644 --- a/fsl/data/atlases.py +++ b/fsl/data/atlases.py @@ -415,7 +415,7 @@ class LabelAtlas(Atlas): """ 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