Skip to content

Commit 700646b

Browse files
committed
Merge remote-tracking branch 'mfalkiewicz/fix/fsl_GLM'
2 parents 25196a4 + ade4b7a commit 700646b

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

nipype/interfaces/fsl/model.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1702,7 +1702,7 @@ def _list_outputs(self):
17021702
class GLMInputSpec(FSLCommandInputSpec):
17031703
in_file = File(exists=True, argstr='-i %s', mandatory=True, position=1,
17041704
desc='input file name (text matrix or 3D/4D image file)')
1705-
out_file = File(name_template="%s_glm.txt", argstr='-o %s', position=3,
1705+
out_file = File(name_template="%s_glm", argstr='-o %s', position=3,
17061706
desc=('filename for GLM parameter estimates'
17071707
+ ' (GLM betas)'),
17081708
name_source="in_file", keep_extension=True)
@@ -1809,13 +1809,7 @@ class GLM(FSLCommand):
18091809
output_spec = GLMOutputSpec
18101810

18111811
def _list_outputs(self):
1812-
outputs = self.output_spec().get()
1813-
1814-
outputs['out_file'] = self.inputs.out_file
1815-
# Generate an out_file if one is not provided
1816-
if not isdefined(outputs['out_file']) and isdefined(self.inputs.in_file):
1817-
outputs['out_file'] = self._gen_filename('out_file')
1818-
outputs['out_file'] = os.path.abspath(outputs['out_file'])
1812+
outputs = super(GLM, self)._list_outputs()
18191813

18201814
if isdefined(self.inputs.out_cope):
18211815
outputs['out_cope'] = os.path.abspath(self.inputs.out_cope)

0 commit comments

Comments
 (0)