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
c88ce28b
Commit
c88ce28b
authored
6 years ago
by
Paul McCarthy
Browse files
Options
Downloads
Patches
Plain Diff
RF: Minor tweak to key used for built-in vertex sets
parent
b5e65deb
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
+8
-3
8 additions, 3 deletions
fsl/data/gifti.py
with
8 additions
and
3 deletions
fsl/data/gifti.py
+
8
−
3
View file @
c88ce28b
...
@@ -41,7 +41,7 @@ is expected to have.
...
@@ -41,7 +41,7 @@ is expected to have.
"""
"""
EXTENSION_DESCRIPTIONS
=
[
'
GIFTI
I
surface file
'
,
'
GIFTI file
'
]
EXTENSION_DESCRIPTIONS
=
[
'
GIFTI surface file
'
,
'
GIFTI file
'
]
"""
A description for each of the :data:`ALLOWED_EXTENSIONS`.
"""
"""
A description for each of the :data:`ALLOWED_EXTENSIONS`.
"""
...
@@ -59,7 +59,12 @@ class GiftiMesh(fslmesh.Mesh):
...
@@ -59,7 +59,12 @@ class GiftiMesh(fslmesh.Mesh):
"""
Load the given GIFTI file using ``nibabel``, and extracts surface
"""
Load the given GIFTI file using ``nibabel``, and extracts surface
data using the :func:`loadGiftiMesh` function.
data using the :func:`loadGiftiMesh` function.
:arg infile: A GIFTI file (``*..gii``) which contains a surface
If the file contains more than one set of vertices, the additional
ones are added with keys of the form ``infile_i``, where ``infile`` is
the absolute path to the file, and ``i`` is an index number, starting
from 1. See the :meth:`.addVertices` method.
:arg infile: A GIFTI file (``*.gii``) which contains a surface
definition.
definition.
:arg fixWinding: Passed through to the :meth:`addVertices` method
:arg fixWinding: Passed through to the :meth:`addVertices` method
...
@@ -85,7 +90,7 @@ class GiftiMesh(fslmesh.Mesh):
...
@@ -85,7 +90,7 @@ class GiftiMesh(fslmesh.Mesh):
for
i
,
v
in
enumerate
(
vertices
):
for
i
,
v
in
enumerate
(
vertices
):
if
i
==
0
:
key
=
infile
if
i
==
0
:
key
=
infile
else
:
key
=
'
{}
[
{}
]
'
.
format
(
infile
,
i
)
else
:
key
=
'
{}
_
{}
'
.
format
(
infile
,
i
)
self
.
addVertices
(
v
,
key
,
select
=
(
i
==
0
),
fixWinding
=
fixWinding
)
self
.
addVertices
(
v
,
key
,
select
=
(
i
==
0
),
fixWinding
=
fixWinding
)
self
.
setMeta
(
infile
,
surfimg
)
self
.
setMeta
(
infile
,
surfimg
)
...
...
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