From e701c872434be1f278717ae114430fbcdad4da25 Mon Sep 17 00:00:00 2001
From: Paul McCarthy <pauldmccarthy@gmail.com>
Date: Fri, 12 Apr 2019 11:36:44 +0100
Subject: [PATCH] RF: Don't copy vertices/indices. If callers need writeable
 arrays, they can change flag/create a copy themselves

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

diff --git a/fsl/data/gifti.py b/fsl/data/gifti.py
index abd41f7d4..aa8b20ed7 100644
--- a/fsl/data/gifti.py
+++ b/fsl/data/gifti.py
@@ -211,8 +211,8 @@ def loadGiftiMesh(filename):
         raise ValueError('{}: GIFTI surface files must contain '
                          'at least one pointset array'.format(filename))
 
-    vertices = [np.array(ps.data) for ps in pointsets]
-    indices  = np.array(triangles[0].data)
+    vertices = [ps.data for ps in pointsets]
+    indices  = triangles[0].data
 
     if len(vdata) == 0: vdata = None
     else:               vdata = prepareGiftiVertexData(vdata, filename)
-- 
GitLab