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
Evan Edmond
fslpy
Commits
d316b293
Commit
d316b293
authored
Jan 21, 2021
by
Paul McCarthy
🚵
Browse files
RF: minor formatting
parent
9e2f40fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
fsl/data/featanalysis.py
View file @
d316b293
...
...
@@ -22,6 +22,7 @@ following functions are provided:
isFirstLevelAnalysis
loadDesign
loadContrasts
loadFsf
loadSettings
getThresholds
loadClusterResults
...
...
@@ -215,16 +216,18 @@ def loadContrasts(featdir):
return
names
,
contrasts
def
loadFsf
(
designfsf
):
"""Loads the analysis settings from a text file (.fsf) used to configure FEAT.
"""Loads the analysis settings from a text file (.fsf) used to configure
FEAT.
Returns a dict containing the settings specified in the file
:arg designfsf: A .fsf file.
"""
settings
=
collections
.
OrderedDict
()
log
.
debug
(
'Loading FEAT settings from {}'
.
format
(
designfsf
))
with
open
(
designfsf
,
'rt'
)
as
f
:
...
...
@@ -247,6 +250,7 @@ def loadFsf(designfsf):
return
settings
def
loadSettings
(
featdir
):
"""Loads the analysis settings from a FEAT directory.
...
...
@@ -255,9 +259,9 @@ def loadSettings(featdir):
:arg featdir: A FEAT directory.
"""
designfsf
=
op
.
join
(
featdir
,
'design.fsf'
)
return
loadFsf
(
designfsf
)
...
...
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