diff --git a/fsl/data/gifti.py b/fsl/data/gifti.py index abd41f7d43e468136c08be7e418ec8cbdb0bda9f..aa8b20ed7b8cedf7a168c901458f0aa85e8d770e 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)