Skip to content

Commit da31236

Browse files
committed
make specs
1 parent b567e0a commit da31236

16 files changed

+684
-591
lines changed

nipype/interfaces/dtitk/tests/test_auto_AffineTask.py

+61-50
Original file line numberDiff line numberDiff line change
@@ -4,63 +4,74 @@
44

55

66
def test_AffineTask_inputs():
7-
input_map = dict(args=dict(argstr='%s',
8-
),
9-
environ=dict(nohash=True,
10-
usedefault=True,
11-
),
12-
fixed_file=dict(argstr='%s',
13-
exists=True,
14-
mandatory=True,
15-
position=0,
16-
),
17-
ftol=dict(argstr='%s',
18-
mandatory=True,
19-
position=6,
20-
),
21-
ignore_exception=dict(nohash=True,
22-
usedefault=True,
23-
),
24-
moving_file=dict(argstr='%s',
25-
exists=True,
26-
mandatory=True,
27-
position=1,
28-
),
29-
samplingX=dict(argstr='%s',
30-
mandatory=True,
31-
position=3,
32-
),
33-
samplingY=dict(argstr='%s',
34-
mandatory=True,
35-
position=4,
36-
),
37-
samplingZ=dict(argstr='%s',
38-
mandatory=True,
39-
position=5,
40-
),
41-
similarity_metric=dict(argstr='%s',
42-
exists=True,
43-
mandatory=True,
44-
position=2,
45-
),
46-
terminal_output=dict(deprecated='1.0.0',
47-
nohash=True,
48-
),
49-
useInTrans=dict(argstr='%s',
50-
mandatory=False,
51-
position=7,
52-
),
7+
input_map = dict(
8+
args=dict(argstr='%s', ),
9+
environ=dict(
10+
nohash=True,
11+
usedefault=True,
12+
),
13+
fixed_file=dict(
14+
argstr='%s',
15+
exists=True,
16+
mandatory=True,
17+
position=0,
18+
),
19+
ftol=dict(
20+
argstr='%s',
21+
mandatory=True,
22+
position=6,
23+
),
24+
ignore_exception=dict(
25+
deprecated='1.0.0',
26+
nohash=True,
27+
usedefault=True,
28+
),
29+
moving_file=dict(
30+
argstr='%s',
31+
exists=True,
32+
mandatory=True,
33+
position=1,
34+
),
35+
samplingX=dict(
36+
argstr='%s',
37+
mandatory=True,
38+
position=3,
39+
),
40+
samplingY=dict(
41+
argstr='%s',
42+
mandatory=True,
43+
position=4,
44+
),
45+
samplingZ=dict(
46+
argstr='%s',
47+
mandatory=True,
48+
position=5,
49+
),
50+
similarity_metric=dict(
51+
argstr='%s',
52+
exists=True,
53+
mandatory=True,
54+
position=2,
55+
),
56+
terminal_output=dict(
57+
deprecated='1.0.0',
58+
nohash=True,
59+
),
60+
useInTrans=dict(
61+
argstr='%s',
62+
mandatory=False,
63+
position=7,
64+
),
5365
)
5466
inputs = AffineTask.input_spec()
5567

5668
for key, metadata in list(input_map.items()):
5769
for metakey, value in list(metadata.items()):
5870
assert getattr(inputs.traits()[key], metakey) == value
59-
60-
6171
def test_AffineTask_outputs():
62-
output_map = dict(out_file=dict(),
63-
out_file_xfm=dict(),
72+
output_map = dict(
73+
out_file=dict(),
74+
out_file_xfm=dict(),
6475
)
6576
outputs = AffineTask.output_spec()
6677

nipype/interfaces/dtitk/tests/test_auto_BinThreshTask.py

+34-30
Original file line numberDiff line numberDiff line change
@@ -4,43 +4,47 @@
44

55

66
def test_BinThreshTask_inputs():
7-
input_map = dict(args=dict(argstr='%s',
8-
),
9-
environ=dict(nohash=True,
10-
usedefault=True,
11-
),
12-
ignore_exception=dict(nohash=True,
13-
usedefault=True,
14-
),
15-
in_file=dict(argstr='%s',
16-
exists=True,
17-
mandatory=False,
18-
position=0,
19-
),
20-
in_numbers=dict(argstr='%s',
21-
exists=True,
22-
mandatory=False,
23-
position=2,
24-
),
25-
out_file=dict(argstr='%s',
26-
exists=True,
27-
mandatory=False,
28-
position=1,
29-
),
30-
terminal_output=dict(deprecated='1.0.0',
31-
nohash=True,
32-
),
7+
input_map = dict(
8+
args=dict(argstr='%s', ),
9+
environ=dict(
10+
nohash=True,
11+
usedefault=True,
12+
),
13+
ignore_exception=dict(
14+
deprecated='1.0.0',
15+
nohash=True,
16+
usedefault=True,
17+
),
18+
in_file=dict(
19+
argstr='%s',
20+
exists=True,
21+
mandatory=False,
22+
position=0,
23+
),
24+
in_numbers=dict(
25+
argstr='%s',
26+
exists=True,
27+
mandatory=False,
28+
position=2,
29+
),
30+
out_file=dict(
31+
argstr='%s',
32+
exists=True,
33+
mandatory=False,
34+
position=1,
35+
),
36+
terminal_output=dict(
37+
deprecated='1.0.0',
38+
nohash=True,
39+
),
3340
)
3441
inputs = BinThreshTask.input_spec()
3542

3643
for key, metadata in list(input_map.items()):
3744
for metakey, value in list(metadata.items()):
3845
assert getattr(inputs.traits()[key], metakey) == value
39-
40-
4146
def test_BinThreshTask_outputs():
42-
output_map = dict(out_file=dict(),
43-
)
47+
output_map = dict(out_file=dict(), )
4448
outputs = BinThreshTask.output_spec()
4549

4650
for key, metadata in list(output_map.items()):

nipype/interfaces/dtitk/tests/test_auto_CommandLineDtitk.py

+15-12
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,24 @@
44

55

66
def test_CommandLineDtitk_inputs():
7-
input_map = dict(args=dict(argstr='%s',
8-
),
9-
environ=dict(nohash=True,
10-
usedefault=True,
11-
),
12-
ignore_exception=dict(nohash=True,
13-
usedefault=True,
14-
),
15-
terminal_output=dict(deprecated='1.0.0',
16-
nohash=True,
17-
),
7+
input_map = dict(
8+
args=dict(argstr='%s', ),
9+
environ=dict(
10+
nohash=True,
11+
usedefault=True,
12+
),
13+
ignore_exception=dict(
14+
deprecated='1.0.0',
15+
nohash=True,
16+
usedefault=True,
17+
),
18+
terminal_output=dict(
19+
deprecated='1.0.0',
20+
nohash=True,
21+
),
1822
)
1923
inputs = CommandLineDtitk.input_spec()
2024

2125
for key, metadata in list(input_map.items()):
2226
for metakey, value in list(metadata.items()):
2327
assert getattr(inputs.traits()[key], metakey) == value
24-

nipype/interfaces/dtitk/tests/test_auto_ComposeXfmTask.py

+36-32
Original file line numberDiff line numberDiff line change
@@ -4,45 +4,49 @@
44

55

66
def test_ComposeXfmTask_inputs():
7-
input_map = dict(args=dict(argstr='%s',
8-
),
9-
environ=dict(nohash=True,
10-
usedefault=True,
11-
),
12-
ignore_exception=dict(nohash=True,
13-
usedefault=True,
14-
),
15-
in_aff=dict(argstr='-aff %s',
16-
exists=True,
17-
mandatory=False,
18-
position=0,
19-
),
20-
in_df=dict(argstr='-df %s',
21-
exists=True,
22-
mandatory=False,
23-
position=1,
24-
),
25-
out_file=dict(argstr='-out %s',
26-
exists=True,
27-
mandatory=False,
28-
name_source='in_df',
29-
name_template='%s_comboaff.nii.gz',
30-
position=2,
31-
),
32-
terminal_output=dict(deprecated='1.0.0',
33-
nohash=True,
34-
),
7+
input_map = dict(
8+
args=dict(argstr='%s', ),
9+
environ=dict(
10+
nohash=True,
11+
usedefault=True,
12+
),
13+
ignore_exception=dict(
14+
deprecated='1.0.0',
15+
nohash=True,
16+
usedefault=True,
17+
),
18+
in_aff=dict(
19+
argstr='-aff %s',
20+
exists=True,
21+
mandatory=False,
22+
position=0,
23+
),
24+
in_df=dict(
25+
argstr='-df %s',
26+
exists=True,
27+
mandatory=False,
28+
position=1,
29+
),
30+
out_file=dict(
31+
argstr='-out %s',
32+
exists=True,
33+
mandatory=False,
34+
name_source='in_df',
35+
name_template='%s_comboaff.nii.gz',
36+
position=2,
37+
),
38+
terminal_output=dict(
39+
deprecated='1.0.0',
40+
nohash=True,
41+
),
3542
)
3643
inputs = ComposeXfmTask.input_spec()
3744

3845
for key, metadata in list(input_map.items()):
3946
for metakey, value in list(metadata.items()):
4047
assert getattr(inputs.traits()[key], metakey) == value
41-
42-
4348
def test_ComposeXfmTask_outputs():
44-
output_map = dict(out_file=dict(),
45-
)
49+
output_map = dict(out_file=dict(), )
4650
outputs = ComposeXfmTask.output_spec()
4751

4852
for key, metadata in list(output_map.items()):

0 commit comments

Comments
 (0)