Skip to content

Commit c5d444e

Browse files
committed
Add max and min ver
1 parent aada730 commit c5d444e

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

nipype/interfaces/ants/tests/test_auto_AntsJointFusion.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ def test_AntsJointFusion_inputs():
5252
hash_files=False,
5353
),
5454
out_label_post_prob_name_format=dict(
55-
requires=['out_label_fusion', 'out_intensity_fusion_name_format'],
56-
),
55+
requires=['out_label_fusion',
56+
'out_intensity_fusion_name_format'], ),
5757
patch_metric=dict(argstr='-m %s', ),
5858
patch_radius=dict(
5959
argstr='-p %s',

nipype/interfaces/mrtrix3/tests/test_auto_Tractography.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,10 @@ def test_Tractography_inputs():
4040
argstr='-samples %d',
4141
usedefault=True,
4242
),
43-
n_tracks=dict(argstr='-select %d', ),
43+
n_tracks=dict(
44+
argstr='-number %d',
45+
max_ver=0.4,
46+
),
4447
n_trials=dict(argstr='-trials %d', ),
4548
noprecompt=dict(argstr='-noprecomputed', ),
4649
nthreads=dict(
@@ -77,6 +80,10 @@ def test_Tractography_inputs():
7780
xor=['seed_image', 'seed_grid_voxel'],
7881
),
7982
seed_sphere=dict(argstr='-seed_sphere %f,%f,%f,%f', ),
83+
select=dict(
84+
argstr='-select %d',
85+
min_ver=3,
86+
),
8087
sph_trait=dict(argstr='%f,%f,%f,%f', ),
8188
step_size=dict(argstr='-step %f', ),
8289
stop=dict(argstr='-stop', ),

nipype/interfaces/mrtrix3/tracking.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,14 @@ class TractographyInputSpec(MRTrix3BaseInputSpec):
7575
desc=('set the maximum angle between successive steps (default '
7676
'is 90deg x stepsize / voxelsize)'))
7777
n_tracks = traits.Int(
78+
argstr='-number %d',
79+
max_ver=0.4,
80+
desc=('set the desired number of tracks. The program will continue'
81+
' to generate tracks until this number of tracks have been '
82+
'selected and written to the output file'))
83+
select = traits.Int(
7884
argstr='-select %d',
85+
min_ver=3,
7986
desc=('set the desired number of tracks. The program will continue'
8087
' to generate tracks until this number of tracks have been '
8188
'selected and written to the output file'))

0 commit comments

Comments
 (0)