File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -295,7 +295,11 @@ def _list_outputs(self):
295
295
296
296
outputs ['reml_script' ] = self ._gen_fname (
297
297
suffix = '.REML_cmd' , ** _gen_fname_opts )
298
- outputs ['out_file' ] = os .path .abspath (self .inputs .out_file )
298
+ # remove out_file from outputs if x1d_stop set to True
299
+ if self .inputs .x1D_stop :
300
+ del outputs ['out_file' ]
301
+ else :
302
+ outputs ['out_file' ] = os .path .abspath (self .inputs .out_file )
299
303
300
304
return outputs
301
305
Original file line number Diff line number Diff line change
1
+ """Test afni deconvolve"""
2
+
3
+ from ..model import Deconvolve
4
+
5
+ def test_x1dstop ():
6
+ deconv = Deconvolve ()
7
+ deconv .inputs .out_file = 'file.nii'
8
+ assert 'out_file' in deconv ._list_outputs ()
9
+ deconv .inputs .x1D_stop = True
10
+ assert not 'out_file' in deconv ._list_outputs ()
You can’t perform that action at this time.
0 commit comments