File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -112,17 +112,17 @@ def _list_outputs(self):
112112 if isdefined (self .inputs .out_dir ):
113113 outputs ['out_dir' ] = os .path .abspath (self .inputs .out_dir )
114114 else :
115- outputs ['out_dir' ] = self ._gen_filename ("out_dir" )
116- out_dir = os .path .abspath (self .inputs .out_dir )
117- outputs ['out_dir' ] = out_dir
118-
115+ outputs ['out_dir' ] = self ._gen_filename ('out_dir' )
116+ out_dir = outputs ['out_dir' ]
117+
119118 if self .inputs .denoise_type in ('aggr' , 'both' ):
120119 outputs ['aggr_denoised_file' ] = os .path .join (out_dir , 'denoised_func_data_aggr.nii.gz' )
121120 if self .inputs .denoise_type in ('nonaggr' , 'both' ):
122121 outputs ['nonaggr_denoised_file' ] = os .path .join (out_dir , 'denoised_func_data_nonaggr.nii.gz' )
122+ return outputs
123123
124124 def _gen_filename (self , name ):
125- if name == " out_dir" :
125+ if name == ' out_dir' :
126126 return os .getcwd ()
127127
128- return outputs
128+
You can’t perform that action at this time.
0 commit comments