Commit d1938fc7 authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

BF: Numpy/nibabel updates uncovered the fact that arrays read from gifti files

are read-only, so we needd to create copies.
parent 5f036443
......@@ -195,8 +195,8 @@ def loadGiftiMesh(filename):
raise ValueError('{}: GIFTI surface files must contain '
'exactly one triangle array'.format(filename))
vertices = pointsets[0].data
indices = triangles[0].data
vertices = np.array(pointsets[0].data)
indices = np.array(triangles[0].data)
return gimg, vertices, indices
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment