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
b9819eba
Commit
b9819eba
authored
9 years ago
by
Paul McCarthy
Browse files
Options
Downloads
Patches
Plain Diff
Melodic group ICA (*.gica) directories are detected
parent
8dee34b8
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/melodicresults.py
+4
-2
4 additions, 2 deletions
fsl/data/melodicresults.py
with
4 additions
and
2 deletions
fsl/data/melodicresults.py
+
4
−
2
View file @
b9819eba
...
@@ -60,7 +60,7 @@ def isMelodicDir(path):
...
@@ -60,7 +60,7 @@ def isMelodicDir(path):
"""
Returns ``True`` if the given path looks like it is contained within
"""
Returns ``True`` if the given path looks like it is contained within
a MELODIC directory, ``False`` otherwise. A melodic directory:
a MELODIC directory, ``False`` otherwise. A melodic directory:
- Must be named ``*.ica``.
- Must be named ``*.ica``
or ``*.gica``
.
- Must contain a file called ``melodic_IC.nii.gz``.
- Must contain a file called ``melodic_IC.nii.gz``.
- Must contain a file called ``melodic_mix``.
- Must contain a file called ``melodic_mix``.
- Must contain a file called ``melodic_FTmix``.
- Must contain a file called ``melodic_FTmix``.
...
@@ -71,7 +71,9 @@ def isMelodicDir(path):
...
@@ -71,7 +71,9 @@ def isMelodicDir(path):
if
op
.
isdir
(
path
):
dirname
=
path
if
op
.
isdir
(
path
):
dirname
=
path
else
:
dirname
=
op
.
dirname
(
path
)
else
:
dirname
=
op
.
dirname
(
path
)
if
not
dirname
.
endswith
(
'
.ica
'
):
sufs
=
[
'
.ica
'
,
'
.gica
'
]
if
not
any
([
dirname
.
endswith
(
suf
)
for
suf
in
sufs
]):
return
False
return
False
# Must contain an image file called melodic_IC
# Must contain an image file called melodic_IC
...
...
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