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
137a6a5e
Commit
137a6a5e
authored
Jul 28, 2021
by
Paul McCarthy
🚵
Browse files
RF: Accept filtered_func_data_clean.nii.gz as melodic data file
parent
694694f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
fsl/data/melodicanalysis.py
View file @
137a6a5e
...
...
@@ -133,10 +133,18 @@ def getDataFile(meldir):
if
topDir
is
None
:
return
None
dataFile
=
op
.
join
(
topDir
,
'filtered_func_data'
)
# People often rename filtered_func_data.nii.gz
# to something like filtered_func_data_clean.nii.gz,
# because that is the recommended approach when
# performing ICA-based denoising). So we try both.
candidates
=
[
'filtered_func_data'
,
'filtered_func_data_clean'
]
try
:
return
fslimage
.
addExt
(
dataFile
)
except
fslimage
.
PathError
:
return
None
for
candidate
in
candidates
:
dataFile
=
op
.
join
(
topDir
,
candidate
)
try
:
return
fslimage
.
addExt
(
dataFile
)
except
fslimage
.
PathError
:
continue
return
None
def
getMeanFile
(
meldir
):
...
...
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