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
d776258b
Commit
d776258b
authored
9 years ago
by
Paul McCarthy
Browse files
Options
Downloads
Patches
Plain Diff
FEAT images give themselves a custom name
parent
e768c0c6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
fsl/data/featimage.py
+8
-0
8 additions, 0 deletions
fsl/data/featimage.py
with
8 additions
and
0 deletions
fsl/data/featimage.py
+
8
−
0
View file @
d776258b
...
...
@@ -148,6 +148,7 @@ class FEATImage(fslimage.Image):
design
=
loadDesignMat
(
op
.
join
(
featDir
,
'
design.mat
'
))
names
,
cons
=
loadDesignCon
(
op
.
join
(
featDir
,
'
design.con
'
))
self
.
__analysisName
=
op
.
splitext
(
op
.
basename
(
featDir
))[
0
]
self
.
__featDir
=
featDir
self
.
__design
=
design
self
.
__contrastNames
=
names
...
...
@@ -158,6 +159,13 @@ class FEATImage(fslimage.Image):
self
.
__pes
=
[
None
]
*
self
.
numEVs
()
self
.
__copes
=
[
None
]
*
self
.
numContrasts
()
if
'
name
'
not
in
kwargs
:
self
.
name
=
'
{}.feat: {}
'
.
format
(
self
.
__analysisName
,
self
.
name
)
def
getAnalysisName
(
self
):
return
self
.
__analysisName
def
getDesign
(
self
):
...
...
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