Skip to content

Commit 166f0f8

Browse files
committed
tst: revert tests
1 parent 9f685f1 commit 166f0f8

16 files changed

+130
-59
lines changed

nipype/interfaces/afni/tests/test_auto_Volreg.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ def test_Volreg_inputs():
3232
name_source='in_file',
3333
name_template='%s.1D',
3434
),
35+
oned_matrix_save=dict(argstr='-1Dmatrix_save %s',
36+
keep_extension=True,
37+
name_source='in_file',
38+
name_template='%s.aff12.1D',
39+
),
3540
out_file=dict(argstr='-prefix %s',
3641
name_source='in_file',
3742
name_template='%s_volreg',
@@ -57,6 +62,7 @@ def test_Volreg_inputs():
5762
def test_Volreg_outputs():
5863
output_map = dict(md1d_file=dict(),
5964
oned_file=dict(),
65+
oned_matrix_save=dict(),
6066
out_file=dict(),
6167
)
6268
outputs = Volreg.output_spec()

nipype/interfaces/camino/tests/test_auto_ProcStreamlines.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,18 @@ def test_ProcStreamlines_inputs():
5656
position=-1,
5757
),
5858
outputacm=dict(argstr='-outputacm',
59+
requires=['outputroot', 'seedfile'],
5960
),
6061
outputcbs=dict(argstr='-outputcbs',
62+
requires=['outputroot', 'targetfile', 'seedfile'],
6163
),
6264
outputcp=dict(argstr='-outputcp',
65+
requires=['outputroot', 'seedfile'],
6366
),
6467
outputroot=dict(argstr='-outputroot %s',
6568
),
6669
outputsc=dict(argstr='-outputsc',
70+
requires=['outputroot', 'seedfile'],
6771
),
6872
outputtracts=dict(argstr='-outputtracts',
6973
),
@@ -103,7 +107,8 @@ def test_ProcStreamlines_inputs():
103107
yield assert_equal, getattr(inputs.traits()[key], metakey), value
104108

105109
def test_ProcStreamlines_outputs():
106-
output_map = dict(proc=dict(),
110+
output_map = dict(outputroot_files=dict(),
111+
proc=dict(),
107112
)
108113
outputs = ProcStreamlines.output_spec()
109114

nipype/interfaces/fsl/tests/test_auto_ApplyTOPUP.py

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,28 @@ def test_ApplyTOPUP_inputs():
1616
ignore_exception=dict(nohash=True,
1717
usedefault=True,
1818
),
19-
in_files=dict(argstr='%s',
19+
in_files=dict(argstr='--imain=%s',
2020
mandatory=True,
21+
sep=',',
2122
),
22-
in_index=dict(argstr='%s',
23+
in_index=dict(argstr='--inindex=%s',
2324
mandatory=True,
25+
sep=',',
2426
),
25-
in_topup=dict(argstr='--topup=%s',
26-
mandatory=True,
27+
in_topup_fieldcoef=dict(argstr='--topup=%s',
28+
copyfile=False,
29+
requires=['in_topup_movpar'],
30+
),
31+
in_topup_movpar=dict(copyfile=False,
32+
requires=['in_topup_fieldcoef'],
2733
),
2834
interp=dict(argstr='--interp=%s',
2935
),
3036
method=dict(argstr='--method=%s',
3137
),
32-
out_base=dict(argstr='--out=%s',
38+
out_corrected=dict(argstr='--out=%s',
39+
name_source=['in_files'],
40+
name_template='%s_corrected',
3341
),
3442
output_type=dict(),
3543
terminal_output=dict(mandatory=True,

nipype/interfaces/fsl/tests/test_auto_DTIFit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def test_DTIFit_inputs():
1717
mandatory=True,
1818
position=3,
1919
),
20-
cni=dict(argstr='-cni %s',
20+
cni=dict(argstr='--cni=%s',
2121
),
2222
dwi=dict(argstr='-k %s',
2323
mandatory=True,

nipype/interfaces/fsl/tests/test_auto_FIRST.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ def test_FIRST_inputs():
1818
usedefault=True,
1919
),
2020
in_file=dict(argstr='-i %s',
21+
copyfile=False,
2122
mandatory=True,
2223
position=-2,
2324
),

nipype/interfaces/fsl/tests/test_auto_FUGUE.py

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ def test_FUGUE_inputs():
2121
fmap_in_file=dict(argstr='--loadfmap=%s',
2222
),
2323
fmap_out_file=dict(argstr='--savefmap=%s',
24-
hash_files=False,
2524
),
2625
forward_warping=dict(usedefault=True,
2726
),
@@ -53,21 +52,23 @@ def test_FUGUE_inputs():
5352
),
5453
phase_conjugate=dict(argstr='--phaseconj',
5554
),
56-
phasemap_file=dict(argstr='--phasemap=%s',
55+
phasemap_in_file=dict(argstr='--phasemap=%s',
5756
),
5857
poly_order=dict(argstr='--poly=%d',
5958
),
60-
save_shift=dict(),
59+
save_fmap=dict(xor=['save_unmasked_fmap'],
60+
),
61+
save_shift=dict(xor=['save_unmasked_shift'],
62+
),
6163
save_unmasked_fmap=dict(argstr='--unmaskfmap',
62-
requires=['fmap_out_file'],
64+
xor=['save_fmap'],
6365
),
6466
save_unmasked_shift=dict(argstr='--unmaskshift',
65-
requires=['shift_out_file'],
67+
xor=['save_shift'],
6668
),
6769
shift_in_file=dict(argstr='--loadshift=%s',
6870
),
6971
shift_out_file=dict(argstr='--saveshift=%s',
70-
hash_files=False,
7172
),
7273
smooth2d=dict(argstr='--smooth2=%.2f',
7374
),
@@ -79,11 +80,12 @@ def test_FUGUE_inputs():
7980
unwarp_direction=dict(argstr='--unwarpdir=%s',
8081
),
8182
unwarped_file=dict(argstr='--unwarp=%s',
82-
genfile=True,
83-
hash_files=False,
83+
requires=['in_file'],
84+
xor=['warped_file'],
8485
),
8586
warped_file=dict(argstr='--warp=%s',
86-
hash_files=False,
87+
requires=['in_file'],
88+
xor=['unwarped_file'],
8789
),
8890
)
8991
inputs = FUGUE.input_spec()

nipype/interfaces/fsl/tests/test_auto_MELODIC.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ def test_MELODIC_inputs():
3232
in_files=dict(argstr='-i %s',
3333
mandatory=True,
3434
position=0,
35+
sep=',',
3536
),
3637
log_power=dict(argstr='--logPower',
3738
),

nipype/interfaces/fsl/tests/test_auto_TOPUP.py

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,14 @@ def test_TOPUP_inputs():
88
config=dict(argstr='--config=%s',
99
usedefault=True,
1010
),
11-
encoding_direction=dict(),
11+
encoding_direction=dict(argstr='--datain=%s',
12+
mandatory=True,
13+
requires=['readout_times'],
14+
xor=['encoding_file'],
15+
),
1216
encoding_file=dict(argstr='--datain=%s',
17+
mandatory=True,
18+
xor=['encoding_direction'],
1319
),
1420
environ=dict(nohash=True,
1521
usedefault=True,
@@ -33,12 +39,25 @@ def test_TOPUP_inputs():
3339
numprec=dict(argstr='--numprec=%s',
3440
),
3541
out_base=dict(argstr='--out=%s',
42+
hash_files=False,
43+
name_source=['in_file'],
44+
name_template='%s_base',
3645
),
3746
out_corrected=dict(argstr='--iout=%s',
47+
hash_files=False,
48+
name_source=['in_file'],
49+
name_template='%s_corrected',
3850
),
3951
out_field=dict(argstr='--fout=%s',
52+
hash_files=False,
53+
name_source=['in_file'],
54+
name_template='%s_field',
4055
),
4156
out_logfile=dict(argstr='--logout=%s',
57+
hash_files=False,
58+
keep_extension=True,
59+
name_source=['in_file'],
60+
name_template='%s_topup.log',
4261
),
4362
output_type=dict(),
4463
readout_times=dict(mandatory=True,
@@ -78,7 +97,6 @@ def test_TOPUP_outputs():
7897
out_fieldcoef=dict(),
7998
out_logfile=dict(),
8099
out_movpar=dict(),
81-
out_topup=dict(),
82100
)
83101
outputs = TOPUP.output_spec()
84102

nipype/interfaces/mrtrix/tests/test_auto_DiffusionTensorStreamlineTrack.py

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,13 @@ def test_DiffusionTensorStreamlineTrack_inputs():
1616
usedefault=True,
1717
),
1818
exclude_file=dict(argstr='-exclude %s',
19-
position=2,
19+
xor=['exclude_file', 'exclude_spec'],
2020
),
21-
exclude_spec=dict(argstr='-seed %s',
21+
exclude_spec=dict(argstr='-exclude %s',
2222
position=2,
2323
sep=',',
2424
units='mm',
25+
xor=['exclude_file', 'exclude_spec'],
2526
),
2627
gradient_encoding_file=dict(argstr='-grad %s',
2728
mandatory=True,
@@ -35,12 +36,13 @@ def test_DiffusionTensorStreamlineTrack_inputs():
3536
position=-2,
3637
),
3738
include_file=dict(argstr='-include %s',
38-
position=2,
39+
xor=['include_file', 'include_spec'],
3940
),
40-
include_spec=dict(argstr='-seed %s',
41+
include_spec=dict(argstr='-include %s',
4142
position=2,
4243
sep=',',
4344
units='mm',
45+
xor=['include_file', 'include_spec'],
4446
),
4547
initial_cutoff_value=dict(argstr='-initcutoff %s',
4648
units='NA',
@@ -52,13 +54,14 @@ def test_DiffusionTensorStreamlineTrack_inputs():
5254
position=-3,
5355
usedefault=True,
5456
),
55-
mask_file=dict(argstr='-exclude %s',
56-
position=2,
57+
mask_file=dict(argstr='-mask %s',
58+
xor=['mask_file', 'mask_spec'],
5759
),
58-
mask_spec=dict(argstr='-seed %s',
60+
mask_spec=dict(argstr='-mask %s',
5961
position=2,
6062
sep=',',
6163
units='mm',
64+
xor=['mask_file', 'mask_spec'],
6265
),
6366
maximum_number_of_tracks=dict(argstr='-maxnum %d',
6467
),
@@ -74,21 +77,24 @@ def test_DiffusionTensorStreamlineTrack_inputs():
7477
no_mask_interpolation=dict(argstr='-nomaskinterp',
7578
),
7679
out_file=dict(argstr='%s',
77-
genfile=True,
80+
name_source=['in_file'],
81+
name_template='%s_tracked.tck',
82+
output_name='tracked',
7883
position=-1,
7984
),
8085
seed_file=dict(argstr='-seed %s',
81-
position=2,
86+
xor=['seed_file', 'seed_spec'],
8287
),
8388
seed_spec=dict(argstr='-seed %s',
8489
position=2,
8590
sep=',',
8691
units='mm',
92+
xor=['seed_file', 'seed_spec'],
8793
),
8894
step_size=dict(argstr='-step %s',
8995
units='mm',
9096
),
91-
stop=dict(argstr='-gzip',
97+
stop=dict(argstr='-stop',
9298
),
9399
terminal_output=dict(mandatory=True,
94100
nohash=True,

nipype/interfaces/mrtrix/tests/test_auto_GenerateDirections.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@ def test_GenerateDirections_inputs():
2323
),
2424
out_file=dict(argstr='%s',
2525
hash_files=False,
26+
name_source=['num_dirs'],
27+
name_template='directions_%d.txt',
2628
position=-1,
27-
usedefault=True,
2829
),
2930
power=dict(argstr='-power %s',
3031
),

nipype/interfaces/mrtrix/tests/test_auto_ProbabilisticSphericallyDeconvolutedStreamlineTrack.py

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,13 @@ def test_ProbabilisticSphericallyDeconvolutedStreamlineTrack_inputs():
1616
usedefault=True,
1717
),
1818
exclude_file=dict(argstr='-exclude %s',
19-
position=2,
19+
xor=['exclude_file', 'exclude_spec'],
2020
),
21-
exclude_spec=dict(argstr='-seed %s',
21+
exclude_spec=dict(argstr='-exclude %s',
2222
position=2,
2323
sep=',',
2424
units='mm',
25+
xor=['exclude_file', 'exclude_spec'],
2526
),
2627
ignore_exception=dict(nohash=True,
2728
usedefault=True,
@@ -31,12 +32,13 @@ def test_ProbabilisticSphericallyDeconvolutedStreamlineTrack_inputs():
3132
position=-2,
3233
),
3334
include_file=dict(argstr='-include %s',
34-
position=2,
35+
xor=['include_file', 'include_spec'],
3536
),
36-
include_spec=dict(argstr='-seed %s',
37+
include_spec=dict(argstr='-include %s',
3738
position=2,
3839
sep=',',
3940
units='mm',
41+
xor=['include_file', 'include_spec'],
4042
),
4143
initial_cutoff_value=dict(argstr='-initcutoff %s',
4244
units='NA',
@@ -48,13 +50,14 @@ def test_ProbabilisticSphericallyDeconvolutedStreamlineTrack_inputs():
4850
position=-3,
4951
usedefault=True,
5052
),
51-
mask_file=dict(argstr='-exclude %s',
52-
position=2,
53+
mask_file=dict(argstr='-mask %s',
54+
xor=['mask_file', 'mask_spec'],
5355
),
54-
mask_spec=dict(argstr='-seed %s',
56+
mask_spec=dict(argstr='-mask %s',
5557
position=2,
5658
sep=',',
5759
units='mm',
60+
xor=['mask_file', 'mask_spec'],
5861
),
5962
maximum_number_of_tracks=dict(argstr='-maxnum %d',
6063
),
@@ -72,21 +75,24 @@ def test_ProbabilisticSphericallyDeconvolutedStreamlineTrack_inputs():
7275
no_mask_interpolation=dict(argstr='-nomaskinterp',
7376
),
7477
out_file=dict(argstr='%s',
75-
genfile=True,
78+
name_source=['in_file'],
79+
name_template='%s_tracked.tck',
80+
output_name='tracked',
7681
position=-1,
7782
),
7883
seed_file=dict(argstr='-seed %s',
79-
position=2,
84+
xor=['seed_file', 'seed_spec'],
8085
),
8186
seed_spec=dict(argstr='-seed %s',
8287
position=2,
8388
sep=',',
8489
units='mm',
90+
xor=['seed_file', 'seed_spec'],
8591
),
8692
step_size=dict(argstr='-step %s',
8793
units='mm',
8894
),
89-
stop=dict(argstr='-gzip',
95+
stop=dict(argstr='-stop',
9096
),
9197
terminal_output=dict(mandatory=True,
9298
nohash=True,

0 commit comments

Comments
 (0)