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

A couple of little fixes related to handling FEAT images

parent 009e0536
No related branches found
No related tags found
No related merge requests found
......@@ -161,8 +161,12 @@ def loadContrasts(featdir):
tkns = line.split(None, 1)
num = [c for c in tkns[0] if c.isdigit()]
num = int(''.join(num))
name = tkns[1].strip()
names[num] = name
# The /ContrastName field may not
# actually have a name specified
if len(tkns) > 1:
name = tkns[1].strip()
names[num] = name
elif line.startswith('/NumContrasts'):
numContrasts = int(line.split()[1])
......
......@@ -634,7 +634,7 @@ class FEATModelFitTimeSeries(TimeSeries):
"""
if not TimeSeries.update(self, coords):
return
self.updateModelFit()
self.__updateModelFit()
def __updateModelFit(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