Skip to content
Snippets Groups Projects
Commit 397cc6eb authored by Paul McCarthy's avatar Paul McCarthy :mountain_bicyclist:
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 ff26709b
No related branches found
No related tags found
No related merge requests found
......@@ -211,8 +211,8 @@ def loadGiftiMesh(filename):
raise ValueError('{}: GIFTI surface files must contain '
'at least one pointset array'.format(filename))
vertices = [ps.data for ps in pointsets]
indices = triangles[0].data
vertices = [np.array(ps.data) for ps in pointsets]
indices = np.array(triangles[0].data)
if len(vdata) == 0: vdata = None
else: vdata = prepareGiftiVertexData(vdata, filename)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment