Skip to content

Commit ae52aa8

Browse files
committed
Autotest file of camino/dti.py DTMetric interface
1 parent 6d30d9a commit ae52aa8

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
2+
from nipype.testing import assert_equal
3+
from nipype.interfaces.camino.dti import DTMetric
4+
def test_DTMetric_inputs():
5+
input_map = dict(ignore_exception=dict(nohash=True,
6+
usedefault=True,
7+
),
8+
outputfile=dict(argstr='-outputfile %s',
9+
genfile=True,
10+
),
11+
outputdatatype=dict(usedefault=True,
12+
argstr='-outputdatatype %s',
13+
),
14+
metric=dict(mandatory=True,
15+
argstr='-stat %s',
16+
),
17+
args=dict(argstr='%s',
18+
),
19+
inputdatatype=dict(usedefault=True,
20+
argstr='-inputdatatype %s',
21+
),
22+
terminal_output=dict(mandatory=True,
23+
nohash=True,
24+
),
25+
environ=dict(nohash=True,
26+
usedefault=True,
27+
),
28+
eigen_data=dict(mandatory=True,
29+
argstr='-inputfile %s',
30+
),
31+
data_header=dict(argstr='-header %s',
32+
),
33+
)
34+
inputs = DTMetric.input_spec()
35+
36+
for key, metadata in input_map.items():
37+
for metakey, value in metadata.items():
38+
yield assert_equal, getattr(inputs.traits()[key], metakey), value
39+
def test_DTMetric_outputs():
40+
output_map = dict(metric_stats=dict(),
41+
)
42+
outputs = DTMetric.output_spec()
43+
44+
for key, metadata in output_map.items():
45+
for metakey, value in metadata.items():
46+
yield assert_equal, getattr(outputs.traits()[key], metakey), value

0 commit comments

Comments
 (0)