Skip to content

Commit c53d168

Browse files
committed
Add test for 3dSynthesize, edit test for 3dDeconvolve to add cbucket
1 parent 57bc509 commit c53d168

File tree

2 files changed

+57
-1
lines changed

2 files changed

+57
-1
lines changed

nipype/interfaces/afni/tests/test_auto_Deconvolve.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ def test_Deconvolve_inputs():
1414
),
1515
automask=dict(argstr='-automask',
1616
),
17+
cbucket=dict(argstr='-cbucket %s',
18+
),
1719
censor=dict(argstr='-censor %s',
1820
),
1921
dmbase=dict(argstr='-dmbase',
@@ -123,7 +125,8 @@ def test_Deconvolve_inputs():
123125

124126

125127
def test_Deconvolve_outputs():
126-
output_map = dict(out_file=dict(),
128+
output_map = dict(cbucket=dict(),
129+
out_file=dict(),
127130
reml_script=dict(),
128131
x1D=dict(),
129132
)
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
2+
from __future__ import unicode_literals
3+
from ..model import Synthesize
4+
5+
6+
def test_Synthesize_inputs():
7+
input_map = dict(TR=dict(argstr='-TR %f',
8+
),
9+
args=dict(argstr='%s',
10+
),
11+
cbucket=dict(argstr='-cbucket %s',
12+
copyfile=False,
13+
mandatory=True,
14+
),
15+
cenfill=dict(argstr='-cenfill %s',
16+
),
17+
dry_run=dict(argstr='-dry',
18+
),
19+
environ=dict(nohash=True,
20+
usedefault=True,
21+
),
22+
ignore_exception=dict(nohash=True,
23+
usedefault=True,
24+
),
25+
matrix=dict(argstr='-matrix %s',
26+
copyfile=False,
27+
mandatory=True,
28+
),
29+
out_file=dict(argstr='-prefix %s',
30+
name_template='syn',
31+
),
32+
outputtype=dict(),
33+
select=dict(argstr='-select %s',
34+
mandatory=True,
35+
),
36+
terminal_output=dict(nohash=True,
37+
),
38+
)
39+
inputs = Synthesize.input_spec()
40+
41+
for key, metadata in list(input_map.items()):
42+
for metakey, value in list(metadata.items()):
43+
assert getattr(inputs.traits()[key], metakey) == value
44+
45+
46+
def test_Synthesize_outputs():
47+
output_map = dict(out_file=dict(),
48+
)
49+
outputs = Synthesize.output_spec()
50+
51+
for key, metadata in list(output_map.items()):
52+
for metakey, value in list(metadata.items()):
53+
assert getattr(outputs.traits()[key], metakey) == value

0 commit comments

Comments
 (0)