Skip to content

Commit 028ede6

Browse files
committed
Ran make spec on Deconvolve/Remlfit
Added auto_test files from make spec for AFNI interface model.py
1 parent 419cb4a commit 028ede6

File tree

2 files changed

+172
-0
lines changed

2 files changed

+172
-0
lines changed
Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
2+
from __future__ import unicode_literals
3+
from ..model import Deconvolve
4+
5+
6+
def test_Deconvolve_inputs():
7+
input_map = dict(STATmask=dict(argstr='-STATmask %s',
8+
),
9+
TR_1D=dict(argstr='-TR_1D %f',
10+
),
11+
args=dict(argstr='%s',
12+
),
13+
automask=dict(argstr='-automask',
14+
),
15+
censor=dict(argstr='-censor %s',
16+
),
17+
environ=dict(nohash=True,
18+
usedefault=True,
19+
),
20+
force_TR=dict(argstr='-force_TR %d',
21+
),
22+
fout=dict(argstr='-fout',
23+
),
24+
global_times=dict(argstr='-global_times',
25+
xor=['local_times'],
26+
),
27+
glt_label=dict(argstr='-glt_label %d %s...',
28+
requires=['gltsym'],
29+
),
30+
gltsym=dict(argstr='-gltsym SYM: %s...',
31+
),
32+
ignore_exception=dict(nohash=True,
33+
usedefault=True,
34+
),
35+
in_files=dict(argstr='-input %s',
36+
copyfile=False,
37+
mandatory=True,
38+
sep=' ',
39+
),
40+
input1D=dict(argstr='-input1D %s',
41+
),
42+
jobs=dict(argstr='-jobs %d',
43+
),
44+
legendre=dict(argstr='-legendre',
45+
),
46+
local_times=dict(argstr='-local_times',
47+
xor=['global_times'],
48+
),
49+
mask=dict(argstr='-mask %s',
50+
),
51+
noblock=dict(argstr='-noblock',
52+
),
53+
nolegendre=dict(argstr='-nolegendre',
54+
),
55+
num_glt=dict(argstr='-num_glt %d',
56+
position=1,
57+
),
58+
num_stimts=dict(argstr='-num_stimts %d',
59+
position=0,
60+
),
61+
ortvec=dict(argstr='ortvec %s',
62+
),
63+
out_file=dict(argstr='-bucket %s',
64+
),
65+
outputtype=dict(),
66+
polort=dict(argstr='-polort %d',
67+
),
68+
rout=dict(argstr='-rout',
69+
),
70+
sat=dict(argstr='-sat',
71+
xor=['trans'],
72+
),
73+
stim_label=dict(argstr='-stim_label %d %s...',
74+
requires=['stim_times'],
75+
),
76+
stim_times=dict(argstr='-stim_times %d %s %s...',
77+
),
78+
stim_times_subtract=dict(argstr='-stim_times_subtract %f',
79+
),
80+
terminal_output=dict(nohash=True,
81+
),
82+
tout=dict(argstr='-tout',
83+
),
84+
trans=dict(argstr='-trans',
85+
xor=['sat'],
86+
),
87+
vout=dict(argstr='-vout',
88+
),
89+
x1D=dict(argstr='-x1D %s',
90+
),
91+
x1D_stop=dict(argstr='-x1D_stop',
92+
),
93+
)
94+
inputs = Deconvolve.input_spec()
95+
96+
for key, metadata in list(input_map.items()):
97+
for metakey, value in list(metadata.items()):
98+
assert getattr(inputs.traits()[key], metakey) == value
99+
100+
101+
def test_Deconvolve_outputs():
102+
output_map = dict(out_file=dict(),
103+
reml_script=dict(),
104+
x1D=dict(),
105+
)
106+
outputs = Deconvolve.output_spec()
107+
108+
for key, metadata in list(output_map.items()):
109+
for metakey, value in list(metadata.items()):
110+
assert getattr(outputs.traits()[key], metakey) == value
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
2+
from __future__ import unicode_literals
3+
from ..model import Remlfit
4+
5+
6+
def test_Remlfit_inputs():
7+
input_map = dict(args=dict(argstr='%s',
8+
),
9+
automask=dict(argstr='-automask',
10+
usedefault=True,
11+
),
12+
environ=dict(nohash=True,
13+
usedefault=True,
14+
),
15+
fout=dict(argstr='-fout',
16+
),
17+
ignore_exception=dict(nohash=True,
18+
usedefault=True,
19+
),
20+
in_files=dict(argstr='-input "%s"',
21+
copyfile=False,
22+
mandatory=True,
23+
sep=' ',
24+
),
25+
mask=dict(argstr='-mask %s',
26+
),
27+
matim=dict(argstr='-matim %s',
28+
xor=['matrix'],
29+
),
30+
matrix=dict(argstr='-matrix %s',
31+
mandatory=True,
32+
),
33+
nofdr=dict(argstr='-noFDR',
34+
),
35+
out_file=dict(argstr='-Rbuck %s',
36+
),
37+
outputtype=dict(),
38+
polort=dict(argstr='-polort %d',
39+
xor=['matrix'],
40+
),
41+
rout=dict(argstr='-rout',
42+
),
43+
terminal_output=dict(nohash=True,
44+
),
45+
tout=dict(argstr='-tout',
46+
),
47+
)
48+
inputs = Remlfit.input_spec()
49+
50+
for key, metadata in list(input_map.items()):
51+
for metakey, value in list(metadata.items()):
52+
assert getattr(inputs.traits()[key], metakey) == value
53+
54+
55+
def test_Remlfit_outputs():
56+
output_map = dict(out_file=dict(),
57+
)
58+
outputs = Remlfit.output_spec()
59+
60+
for key, metadata in list(output_map.items()):
61+
for metakey, value in list(metadata.items()):
62+
assert getattr(outputs.traits()[key], metakey) == value

0 commit comments

Comments
 (0)