Skip to content

Commit 7ad09b8

Browse files
committed
regenerated tests so var names are updated
1 parent 9c84405 commit 7ad09b8

18 files changed

+128
-47
lines changed

nipype/interfaces/afni/tests/test_auto_TCatSubBrick.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,18 @@ def test_TCatSubBrick_inputs():
1717
mandatory=True,
1818
position=-1,
1919
),
20+
num_threads=dict(nohash=True,
21+
usedefault=True,
22+
),
2023
out_file=dict(argstr='-prefix %s',
2124
genfile=True,
2225
),
2326
outputtype=dict(),
2427
rlt=dict(argstr='-rlt%s',
2528
position=1,
2629
),
27-
terminal_output=dict(nohash=True,
30+
terminal_output=dict(deprecated='1.0.0',
31+
nohash=True,
2832
),
2933
)
3034
inputs = TCatSubBrick.input_spec()

nipype/interfaces/dtitk/tests/test_auto_AffineTask.py

Lines changed: 30 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,30 +9,46 @@ def test_AffineTask_inputs():
99
environ=dict(nohash=True,
1010
usedefault=True,
1111
),
12-
ignore_exception=dict(nohash=True,
13-
usedefault=True,
14-
),
15-
in_fixed_tensor=dict(argstr='%s',
12+
fixed_file=dict(argstr='%s',
1613
exists=True,
17-
mandatory=False,
14+
mandatory=True,
1815
position=0,
1916
),
20-
in_moving_txt=dict(argstr='%s',
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',
2125
exists=True,
22-
mandatory=False,
26+
mandatory=True,
2327
position=1,
2428
),
25-
in_similarity_metric=dict(argstr='%s',
26-
exists=True,
27-
mandatory=False,
29+
samplingX=dict(argstr='%s',
30+
mandatory=True,
2831
position=3,
2932
),
30-
in_usetrans_flag=dict(argstr='%s',
31-
exists=True,
32-
mandatory=False,
33+
samplingY=dict(argstr='%s',
34+
mandatory=True,
3335
position=4,
3436
),
35-
terminal_output=dict(nohash=True,
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,
3652
),
3753
)
3854
inputs = AffineTask.input_spec()

nipype/interfaces/dtitk/tests/test_auto_BinThreshTask.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,13 @@ def test_BinThreshTask_inputs():
2222
mandatory=False,
2323
position=2,
2424
),
25-
out_path=dict(argstr='%s',
25+
out_file=dict(argstr='%s',
2626
exists=True,
2727
mandatory=False,
2828
position=1,
2929
),
30-
terminal_output=dict(nohash=True,
30+
terminal_output=dict(deprecated='1.0.0',
31+
nohash=True,
3132
),
3233
)
3334
inputs = BinThreshTask.input_spec()

nipype/interfaces/dtitk/tests/test_auto_CommandLineDtitk.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ def test_CommandLineDtitk_inputs():
1212
ignore_exception=dict(nohash=True,
1313
usedefault=True,
1414
),
15-
terminal_output=dict(nohash=True,
15+
terminal_output=dict(deprecated='1.0.0',
16+
nohash=True,
1617
),
1718
)
1819
inputs = CommandLineDtitk.input_spec()

nipype/interfaces/dtitk/tests/test_auto_ComposeXfmTask.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,15 @@ def test_ComposeXfmTask_inputs():
2222
mandatory=False,
2323
position=1,
2424
),
25-
out_path=dict(argstr='-out %s',
25+
out_file=dict(argstr='-out %s',
2626
exists=True,
2727
mandatory=False,
2828
name_source='in_df',
2929
name_template='%s_comboaff.nii.gz',
3030
position=2,
3131
),
32-
terminal_output=dict(nohash=True,
32+
terminal_output=dict(deprecated='1.0.0',
33+
nohash=True,
3334
),
3435
)
3536
inputs = ComposeXfmTask.input_spec()

nipype/interfaces/dtitk/tests/test_auto_DiffeoTask.py

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,30 +9,41 @@ def test_DiffeoTask_inputs():
99
environ=dict(nohash=True,
1010
usedefault=True,
1111
),
12+
fixed_file=dict(argstr='%s',
13+
exists=True,
14+
mandatory=False,
15+
position=0,
16+
),
17+
ftol=dict(argstr='%s',
18+
exists=True,
19+
mandatory=True,
20+
position=5,
21+
),
1222
ignore_exception=dict(nohash=True,
1323
usedefault=True,
1424
),
15-
in_fixed_tensor=dict(argstr='%s',
25+
legacy=dict(argstr='%s',
1626
exists=True,
17-
mandatory=False,
18-
position=0,
27+
mandatory=True,
28+
position=3,
1929
),
20-
in_mask=dict(argstr='%s',
30+
mask=dict(argstr='%s',
2131
exists=True,
2232
mandatory=False,
2333
position=2,
2434
),
25-
in_moving_txt=dict(argstr='%s',
35+
moving_file=dict(argstr='%s',
2636
exists=True,
2737
mandatory=False,
2838
position=1,
2939
),
30-
in_numbers=dict(argstr='%s',
40+
n_iters=dict(argstr='%s',
3141
exists=True,
32-
mandatory=False,
33-
position=3,
42+
mandatory=True,
43+
position=4,
3444
),
35-
terminal_output=dict(nohash=True,
45+
terminal_output=dict(deprecated='1.0.0',
46+
nohash=True,
3647
),
3748
)
3849
inputs = DiffeoTask.input_spec()

nipype/interfaces/dtitk/tests/test_auto_RigidTask.py

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ def test_RigidTask_inputs():
1414
mandatory=True,
1515
position=0,
1616
),
17+
ftol=dict(argstr='%s',
18+
mandatory=True,
19+
position=6,
20+
),
1721
ignore_exception=dict(nohash=True,
1822
usedefault=True,
1923
),
@@ -22,12 +26,29 @@ def test_RigidTask_inputs():
2226
mandatory=True,
2327
position=1,
2428
),
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+
),
2541
similarity_metric=dict(argstr='%s',
2642
exists=True,
2743
mandatory=True,
2844
position=2,
2945
),
30-
terminal_output=dict(nohash=True,
46+
terminal_output=dict(deprecated='1.0.0',
47+
nohash=True,
48+
),
49+
useInTrans=dict(argstr='%s',
50+
mandatory=False,
51+
position=7,
3152
),
3253
)
3354
inputs = RigidTask.input_spec()

nipype/interfaces/dtitk/tests/test_auto_SVAdjustVoxSpTask.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,15 @@ def test_SVAdjustVoxSpTask_inputs():
3232
mandatory=False,
3333
position=4,
3434
),
35-
out_path=dict(argstr='-out %s',
35+
out_file=dict(argstr='-out %s',
3636
exists=True,
3737
mandatory=False,
3838
name_source='in_file',
3939
name_template='%s_origmvd.nii.gz',
4040
position=1,
4141
),
42-
terminal_output=dict(nohash=True,
42+
terminal_output=dict(deprecated='1.0.0',
43+
nohash=True,
4344
),
4445
)
4546
inputs = SVAdjustVoxSpTask.input_spec()

nipype/interfaces/dtitk/tests/test_auto_SVResampleTask.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,15 @@ def test_SVResampleTask_inputs():
2727
mandatory=False,
2828
position=2,
2929
),
30-
out_path=dict(argstr='-out %s',
30+
out_file=dict(argstr='-out %s',
3131
exists=True,
3232
mandatory=False,
3333
name_source='in_file',
3434
name_template='%s_resampled.nii.gz',
3535
position=3,
3636
),
37-
terminal_output=dict(nohash=True,
37+
terminal_output=dict(deprecated='1.0.0',
38+
nohash=True,
3839
),
3940
)
4041
inputs = SVResampleTask.input_spec()

nipype/interfaces/dtitk/tests/test_auto_TVAdjustOriginTask.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ def test_TVAdjustOriginTask_inputs():
2525
genfile=True,
2626
position=1,
2727
),
28-
terminal_output=dict(nohash=True,
28+
terminal_output=dict(deprecated='1.0.0',
29+
nohash=True,
2930
),
3031
)
3132
inputs = TVAdjustOriginTask.input_spec()

nipype/interfaces/dtitk/tests/test_auto_TVAdjustVoxSpTask.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ def test_TVAdjustVoxSpTask_inputs():
3030
mandatory=False,
3131
position=2,
3232
),
33-
terminal_output=dict(nohash=True,
33+
terminal_output=dict(deprecated='1.0.0',
34+
nohash=True,
3435
),
3536
vsize=dict(argstr='-vsize %s',
3637
exists=True,

nipype/interfaces/dtitk/tests/test_auto_TVResampleTask.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,15 @@ def test_TVResampleTask_inputs():
2727
mandatory=False,
2828
position=2,
2929
),
30-
out_path=dict(argstr='-out %s',
30+
out_file=dict(argstr='-out %s',
3131
exists=True,
3232
mandatory=False,
3333
name_source='in_file',
3434
name_template='%s_resampled.nii.gz',
3535
position=3,
3636
),
37-
terminal_output=dict(nohash=True,
37+
terminal_output=dict(deprecated='1.0.0',
38+
nohash=True,
3839
),
3940
)
4041
inputs = TVResampleTask.input_spec()

nipype/interfaces/dtitk/tests/test_auto_TVtoolTask.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ def test_TVtoolTask_inputs():
2222
mandatory=False,
2323
position=1,
2424
),
25-
terminal_output=dict(nohash=True,
25+
terminal_output=dict(deprecated='1.0.0',
26+
nohash=True,
2627
),
2728
)
2829
inputs = TVtoolTask.input_spec()

nipype/interfaces/dtitk/tests/test_auto_affScalarVolTask.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,14 @@ def test_affScalarVolTask_inputs():
2525
mandatory=False,
2626
position=1,
2727
),
28-
out_path=dict(argstr='-out %s',
28+
out_file=dict(argstr='-out %s',
2929
mandatory=False,
3030
name_source='in_volume',
3131
name_template='%s_affxfmd.nii.gz',
3232
position=3,
3333
),
34-
terminal_output=dict(nohash=True,
34+
terminal_output=dict(deprecated='1.0.0',
35+
nohash=True,
3536
),
3637
)
3738
inputs = affScalarVolTask.input_spec()

nipype/interfaces/dtitk/tests/test_auto_affSymTensor3DVolTask.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,15 @@ def test_affSymTensor3DVolTask_inputs():
2727
mandatory=False,
2828
position=1,
2929
),
30-
out_path=dict(argstr='-out %s',
30+
out_file=dict(argstr='-out %s',
3131
exists=True,
3232
mandatory=False,
3333
name_source='in_tensor',
3434
name_template='%s_affxfmd.nii.gz',
3535
position=3,
3636
),
37-
terminal_output=dict(nohash=True,
37+
terminal_output=dict(deprecated='1.0.0',
38+
nohash=True,
3839
),
3940
)
4041
inputs = affSymTensor3DVolTask.input_spec()

nipype/interfaces/dtitk/tests/test_auto_diffeoScalarVolTask.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,13 @@ def test_diffeoScalarVolTask_inputs():
4747
mandatory=False,
4848
position=2,
4949
),
50-
out_path=dict(argstr='-out %s',
50+
out_file=dict(argstr='-out %s',
5151
name_source='in_volume',
5252
name_template='%s_diffeoxfmd.nii.gz',
5353
position=1,
5454
),
55-
terminal_output=dict(nohash=True,
55+
terminal_output=dict(deprecated='1.0.0',
56+
nohash=True,
5657
),
5758
)
5859
inputs = diffeoScalarVolTask.input_spec()

nipype/interfaces/dtitk/tests/test_auto_diffeoSymTensor3DVolTask.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,15 @@ def test_diffeoSymTensor3DVolTask_inputs():
2727
mandatory=False,
2828
position=1,
2929
),
30-
out_path=dict(argstr='-out %s',
30+
out_file=dict(argstr='-out %s',
3131
exists=True,
3232
mandatory=False,
3333
name_source='in_tensor',
3434
name_template='%s_diffeoxfmd.nii.gz',
3535
position=3,
3636
),
37-
terminal_output=dict(nohash=True,
37+
terminal_output=dict(deprecated='1.0.0',
38+
nohash=True,
3839
),
3940
)
4041
inputs = diffeoSymTensor3DVolTask.input_spec()
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
2+
from __future__ import unicode_literals
3+
from ..base import SimpleInterface
4+
5+
6+
def test_SimpleInterface_inputs():
7+
input_map = dict(ignore_exception=dict(nohash=True,
8+
usedefault=True,
9+
),
10+
)
11+
inputs = SimpleInterface.input_spec()
12+
13+
for key, metadata in list(input_map.items()):
14+
for metakey, value in list(metadata.items()):
15+
assert getattr(inputs.traits()[key], metakey) == value
16+

0 commit comments

Comments
 (0)