Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Christoph Arthofer
fslpy
Commits
d1938fc7
Commit
d1938fc7
authored
Jan 14, 2019
by
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
fsl/data/gifti.py
View file @
d1938fc7
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment