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

FEAT/melodic report file paths.

parent 520ee612
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -139,6 +139,16 @@ def getTopLevelAnalysisDir(path):
return fslpath.shallowest(path, ['.ica', '.gica', '.feat', '.gfeat'])
def getReportFile(featdir):
"""Returns the path to the FEAT report index file, or ``None`` if there
is no report.
"""
report = op.join(featdir, 'report.html')
if op.exists(report): return report
else: return None
def loadContrasts(featdir):
"""Loads the contrasts from a FEAT directory. Returns a tuple containing:
......
......@@ -119,6 +119,13 @@ class FEATImage(fslimage.Image):
return featanalysis.getTopLevelAnalysisDir(self.__featDir)
def getReportFile(self):
"""Returns the path to the FEAT report - see
:func:`.featanalysis.getReportFile`.
"""
return featanalysis.getReportFile(self.__featDir)
def hasStats(self):
"""Returns ``True`` if the analysis for this ``FEATImage`` contains
a statistical analysis.
......
......@@ -149,7 +149,13 @@ def getFTMixFile(meldir):
def getReportFile(meldir):
pass
"""Returns the path to the MELODIC report index file, or ``None`` if there
is no report.
"""
report = op.join(meldir, '..', 'report.html')
if op.exists(report): return report
else: return None
def getNumComponents(meldir):
......
......@@ -131,6 +131,13 @@ class MelodicImage(fslimage.Image):
contained.
"""
return self.__meldir
def getReportFile(self):
"""Returns the path to the MELODIC report - see
:func:`.melodicanalysis.getReportFile`.
"""
return melanalysis.getReportFile(self.__meldir)
def getTopLevelAnalysisDir(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