Skip to content

Commit f7abd3e

Browse files
committed
Added xor parameter for robustness
2 parents 3d79f49 + 01fd801 commit f7abd3e

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

nipype/interfaces/camino/connectivity.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,10 @@ class ConmatInputSpec(CommandLineInputSpec):
3535

3636
tract_stat = traits.Enum("mean", "min", "max", "sum", "median", "var", argstr='-tractstat %s', units='NA',
3737
desc=("Tract statistic to use. See TractStats for other options."),
38-
requires=['scalar_file'])
38+
requires=['scalar_file'],xor=['tract_prop'])
3939

40-
tract_prop = traits.Enum("length", "endpointsep", argstr='-tractstat %s', units='NA',
40+
tract_prop = traits.Enum("length", "endpointsep", argstr='-tractstat %s',
41+
units='NA', xor=['tract_stat'],
4142
desc=('Tract property average to compute in the connectivity matrix. '
4243
'See TractStats for details.'))
4344

nipype/interfaces/camino/tests/test_auto_Conmat.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,12 @@ def test_Conmat_inputs():
3030
),
3131
tract_prop=dict(argstr='-tractstat %s',
3232
units='NA',
33+
xor=['tract_stat'],
3334
),
3435
tract_stat=dict(argstr='-tractstat %s',
3536
requires=['scalar_file'],
3637
units='NA',
38+
xor=['tract_prop'],
3739
),
3840
)
3941
inputs = Conmat.input_spec()

0 commit comments

Comments
 (0)