@@ -1702,7 +1702,7 @@ def _list_outputs(self):
1702
1702
class GLMInputSpec (FSLCommandInputSpec ):
1703
1703
in_file = File (exists = True , argstr = '-i %s' , mandatory = True , position = 1 ,
1704
1704
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 ,
1706
1706
desc = ('filename for GLM parameter estimates'
1707
1707
+ ' (GLM betas)' ),
1708
1708
name_source = "in_file" , keep_extension = True )
@@ -1809,13 +1809,7 @@ class GLM(FSLCommand):
1809
1809
output_spec = GLMOutputSpec
1810
1810
1811
1811
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 ()
1819
1813
1820
1814
if isdefined (self .inputs .out_cope ):
1821
1815
outputs ['out_cope' ] = os .path .abspath (self .inputs .out_cope )
0 commit comments