Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fslpy
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FSL
fslpy
Commits
ce312df9
Commit
ce312df9
authored
7 years ago
by
Paul McCarthy
Browse files
Options
Downloads
Patches
Plain Diff
It's now GiftiMesh, not GiftiSurface
parent
3a0eea53
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
fsl/data/gifti.py
+4
-4
4 additions, 4 deletions
fsl/data/gifti.py
with
4 additions
and
4 deletions
fsl/data/gifti.py
+
4
−
4
View file @
ce312df9
...
...
@@ -58,7 +58,7 @@ class GiftiMesh(fslmesh.Mesh):
def
__init__
(
self
,
infile
,
fixWinding
=
False
,
loadAll
=
False
):
"""
Load the given GIFTI file using ``nibabel``, and extracts surface
data using the :func:`loadGifti
Surface
` function.
data using the :func:`loadGifti
Mesh
` function.
:arg infile: A GIFTI surface file (``*.surf.gii``).
...
...
@@ -76,7 +76,7 @@ class GiftiMesh(fslmesh.Mesh):
name
=
fslpath
.
removeExt
(
op
.
basename
(
infile
),
ALLOWED_EXTENSIONS
)
infile
=
op
.
abspath
(
infile
)
surfimg
,
vertices
,
indices
=
loadGifti
Surface
(
infile
)
surfimg
,
vertices
,
indices
=
loadGifti
Mesh
(
infile
)
fslmesh
.
Mesh
.
__init__
(
self
,
indices
,
...
...
@@ -96,7 +96,7 @@ class GiftiMesh(fslmesh.Mesh):
for
sfile
in
surfFiles
:
surfimg
,
vertices
,
_
=
loadGifti
Surface
(
sfile
)
surfimg
,
vertices
,
_
=
loadGifti
Mesh
(
sfile
)
if
vertices
.
shape
[
0
]
!=
nvertices
:
continue
...
...
@@ -109,7 +109,7 @@ class GiftiMesh(fslmesh.Mesh):
"""
Overrides the :meth:`.TriangleMesh.loadVertexData` method.
Attempts to load data associated with each vertex of this
``Gifti
Surface
`` from the given ``dataSource``, which may be
``Gifti
Mesh
`` from the given ``dataSource``, which may be
a GIFTI file or a plain text file which contains vertex data.
"""
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment