Skip to content
Snippets Groups Projects
Commit d776258b authored by Paul McCarthy's avatar Paul McCarthy
Browse files

FEAT images give themselves a custom name

parent e768c0c6
No related branches found
No related tags found
No related merge requests found
......@@ -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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment