Skip to content

Commit 4fb327c

Browse files
committed
Added parameter using tuple
1 parent 50536d4 commit 4fb327c

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

nipype/interfaces/fsl/possum.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# @Author: oesteban - [email protected]
77
# @Date: 2014-07-03 15:27:53
88
# @Last Modified by: oesteban
9-
# @Last Modified time: 2014-07-03 16:26:09
9+
# @Last Modified time: 2014-07-03 17:05:47
1010
"""
1111
The possum module provides classes for interfacing with `POSSUM
1212
<http://fsl.fmrib.ox.ac.uk/fsl/fslwiki/POSSUM>`_ command line tools.
@@ -48,11 +48,15 @@ class B0CalcInputSpec(FSLCommandInputSpec):
4848
'(per mm)'))
4949

5050
x_b0 = traits.Float(0.0, argstr='--b0x=%0.2f', desc=('Value for zeroth-order b0 field '
51-
'(x-component), in Tesla'))
51+
'(x-component), in Tesla'), xor=['xyz_b0'])
5252
y_b0 = traits.Float(0.0, argstr='--b0y=%0.2f', desc=('Value for zeroth-order b0 field '
53-
'(y-component), in Tesla'))
53+
'(y-component), in Tesla'), xor=['xyz_b0'])
5454
z_b0 = traits.Float(1.0, argstr='--b0=%0.2f', desc=('Value for zeroth-order b0 field '
55-
'(z-component), in Tesla'))
55+
'(z-component), in Tesla'), xor=['xyz_b0'])
56+
57+
xyz_b0 = traits.Tuple(traits.Float, traits.Float, traits.Float,
58+
argstr='--b0x=%0.2f --b0y=%0.2f --b0=%0.2f', xor=['x_b0','y_b0','z_b0'],
59+
desc='Zeroth-order B0 field in Tesla')
5660

5761
delta = traits.Float(-9.45e-6, argstr='-d %e', desc='Delta value (chi_tissue - chi_air)')
5862
chi_air = traits.Float(4.0e-7, argstr='--chi0=%e', desc='susceptibility of air')

0 commit comments

Comments
 (0)