File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -293,11 +293,14 @@ def _list_outputs(self):
293
293
outputs ['x1D' ] = self ._gen_fname (
294
294
suffix = '.xmat.1D' , ** _gen_fname_opts )
295
295
296
+ if isdefined (self .inputs .cbucket ):
297
+ outputs ['cbucket' ] = os .path .abspath (self .inputs .cbucket )
298
+
296
299
outputs ['reml_script' ] = self ._gen_fname (
297
300
suffix = '.REML_cmd' , ** _gen_fname_opts )
298
301
# remove out_file from outputs if x1d_stop set to True
299
302
if self .inputs .x1D_stop :
300
- del outputs ['out_file' ]
303
+ del outputs ['out_file' ], outputs [ 'cbucket' ]
301
304
else :
302
305
outputs ['out_file' ] = os .path .abspath (self .inputs .out_file )
303
306
@@ -652,3 +655,12 @@ class Synthesize(AFNICommand):
652
655
_cmd = '3dSynthesize'
653
656
input_spec = SynthesizeInputSpec
654
657
output_spec = AFNICommandOutputSpec
658
+
659
+ def _list_outputs (self ):
660
+ outputs = self .output_spec ().get ()
661
+
662
+ for key in outputs .keys ():
663
+ if isdefined (self .inputs .get ()[key ]):
664
+ outputs [key ] = os .path .abspath (self .inputs .get ()[key ])
665
+
666
+ return outputs
Original file line number Diff line number Diff line change @@ -7,4 +7,5 @@ def test_x1dstop():
7
7
deconv .inputs .out_file = 'file.nii'
8
8
assert 'out_file' in deconv ._list_outputs ()
9
9
deconv .inputs .x1D_stop = True
10
- assert not 'out_file' in deconv ._list_outputs ()
10
+ assert 'out_file' not in deconv ._list_outputs ()
11
+ assert 'cbucket' not in deconv ._list_outputs ()
You can’t perform that action at this time.
0 commit comments