From 947b769325d9a303c4515bb279feaf2b49f49076 Mon Sep 17 00:00:00 2001
From: Paul McCarthy <pauldmccarthy@gmail.com>
Date: Mon, 8 Feb 2021 18:20:04 +0000
Subject: [PATCH] RF: Don't round voxel coords - COG coordinates are not
 integer

---
 fsl/data/featanalysis.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/fsl/data/featanalysis.py b/fsl/data/featanalysis.py
index fc2fcb78..42450399 100644
--- a/fsl/data/featanalysis.py
+++ b/fsl/data/featanalysis.py
@@ -373,7 +373,7 @@ def loadClusterResults(featdir, settings, contrast):
         if not op.exists(clusterFile):
             return None
 
-        # In higher levle analysis run in some standard
+        # In higher level analysis run in some standard
         # space, the cluster coordinates are in standard
         # space. We transform them to voxel coordinates.
         # later on.
@@ -480,9 +480,9 @@ def loadClusterResults(featdir, settings, contrast):
         zcog    = [c.zcogx,    c.zcogy,    c.zcogz]
         copemax = [c.copemaxx, c.copemaxy, c.copemaxz]
 
-        zmax    = affine.transform([zmax],    coordXform)[0].round()
-        zcog    = affine.transform([zcog],    coordXform)[0].round()
-        copemax = affine.transform([copemax], coordXform)[0].round()
+        zmax    = affine.transform([zmax],    coordXform)[0]
+        zcog    = affine.transform([zcog],    coordXform)[0]
+        copemax = affine.transform([copemax], coordXform)[0]
 
         c.zmaxx,    c.zmaxy,    c.zmaxz    = zmax
         c.zcogx,    c.zcogy,    c.zcogz    = zcog
-- 
GitLab