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):
112
112
if isdefined (self .inputs .out_dir ):
113
113
outputs ['out_dir' ] = os .path .abspath (self .inputs .out_dir )
114
114
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
+
119
118
if self .inputs .denoise_type in ('aggr' , 'both' ):
120
119
outputs ['aggr_denoised_file' ] = os .path .join (out_dir , 'denoised_func_data_aggr.nii.gz' )
121
120
if self .inputs .denoise_type in ('nonaggr' , 'both' ):
122
121
outputs ['nonaggr_denoised_file' ] = os .path .join (out_dir , 'denoised_func_data_nonaggr.nii.gz' )
122
+ return outputs
123
123
124
124
def _gen_filename (self , name ):
125
- if name == " out_dir" :
125
+ if name == ' out_dir' :
126
126
return os .getcwd ()
127
127
128
- return outputs
128
+
You can’t perform that action at this time.
0 commit comments