File tree Expand file tree Collapse file tree 2 files changed +5
-34
lines changed
nipype/interfaces/mrtrix3 Expand file tree Collapse file tree 2 files changed +5
-34
lines changed Original file line number Diff line number Diff line change @@ -179,27 +179,16 @@ class DWIBiasCorrectInputSpec(MRTrix3BaseInputSpec):
179179 in_mask = File (
180180 argstr = '-mask %s' ,
181181 desc = 'input mask image for bias field estimation' )
182- _xor_methods = ('use_ants' , 'use_fsl' )
183182 use_ants = traits .Bool (
184- default_value = True ,
185- usedefault = True ,
186183 argstr = '-ants' ,
187184 desc = 'use ANTS N4 to estimate the inhomogeneity field' ,
188- xor = _xor_methods )
185+ xor = [ 'use_fsl' ] )
189186 use_fsl = traits .Bool (
190187 argstr = '-fsl' ,
191188 desc = 'use FSL FAST to estimate the inhomogeneity field' ,
192- xor = _xor_methods ,
189+ xor = [ 'use_ants' ] ,
193190 min_ver = '5.0.10' )
194- _xor_grads = ('mrtrix_grad' , 'fsl_grad' )
195- mrtrix_grad = File (
196- argstr = '-grad %s' ,
197- desc = 'diffusion gradient table in MRtrix format' ,
198- xor = _xor_grads )
199- fsl_grad = File (
200- argstr = '-fslgrad %s %s' ,
201- desc = 'diffusion gradient table in FSL bvecs/bvals format' ,
202- xor = _xor_grads )
191+ _xor_grads = ('grad_file' , 'grad_fsl' )
203192 bias = File (
204193 argstr = '-bias %s' ,
205194 desc = 'bias field' )
@@ -237,13 +226,6 @@ class DWIBiasCorrect(MRTrix3Base):
237226 input_spec = DWIBiasCorrectInputSpec
238227 output_spec = DWIBiasCorrectOutputSpec
239228
240- def _list_outputs (self ):
241- outputs = self .output_spec ().get ()
242- outputs ['out_file' ] = op .abspath (self .inputs .out_file )
243- if self .inputs .bias != Undefined :
244- outputs ['bias' ] = op .abspath (self .inputs .bias )
245- return outputs
246-
247229
248230class ResponseSDInputSpec (MRTrix3BaseInputSpec ):
249231 algorithm = traits .Enum (
Original file line number Diff line number Diff line change @@ -15,11 +15,6 @@ def test_DWIBiasCorrect_inputs():
1515 nohash = True ,
1616 usedefault = True ,
1717 ),
18- fsl_grad = dict (
19- argstr = '-fslgrad %s %s' ,
20- extensions = None ,
21- xor = ('mrtrix_grad' , 'fsl_grad' ),
22- ),
2318 grad_file = dict (
2419 argstr = '-grad %s' ,
2520 extensions = None ,
@@ -40,11 +35,6 @@ def test_DWIBiasCorrect_inputs():
4035 argstr = '-mask %s' ,
4136 extensions = None ,
4237 ),
43- mrtrix_grad = dict (
44- argstr = '-grad %s' ,
45- extensions = None ,
46- xor = ('mrtrix_grad' , 'fsl_grad' ),
47- ),
4838 nthreads = dict (
4939 argstr = '-nthreads %d' ,
5040 nohash = True ,
@@ -60,13 +50,12 @@ def test_DWIBiasCorrect_inputs():
6050 ),
6151 use_ants = dict (
6252 argstr = '-ants' ,
63- usedefault = True ,
64- xor = ('use_ants' , 'use_fsl' ),
53+ xor = ['use_fsl' ],
6554 ),
6655 use_fsl = dict (
6756 argstr = '-fsl' ,
6857 min_ver = '5.0.10' ,
69- xor = ( 'use_ants' , 'use_fsl' ) ,
58+ xor = [ 'use_ants' ] ,
7059 ),
7160 )
7261 inputs = DWIBiasCorrect .input_spec ()
You can’t perform that action at this time.
0 commit comments