From 51a87a4d53ad2a630f171941fa729d759a2bc093 Mon Sep 17 00:00:00 2001
From: Paul McCarthy <pauldmccarthy@gmail.com>
Date: Mon, 15 Jan 2018 13:55:17 +0000
Subject: [PATCH] fix to rayIntersection check

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

diff --git a/fsl/data/mesh.py b/fsl/data/mesh.py
index a96864d9a..de4a56e63 100644
--- a/fsl/data/mesh.py
+++ b/fsl/data/mesh.py
@@ -291,7 +291,7 @@ class TriangleMesh(object):
             return_locations=True,
             multiple_hits=False)
 
-        if tris.size == 0:
+        if len(tris) == 0:
             return np.zeros((0, 3)), np.zeros((0,))
 
         # sort by ray. I'm Not sure if this is
-- 
GitLab