File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
nipype/interfaces/mrtrix3 Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -226,14 +226,20 @@ class DWIBiasCorrect(MRTrix3Base):
226
226
>>> bias_correct.inputs.in_file = 'dwi.mif'
227
227
>>> bias_correct.inputs.use_ants = True
228
228
>>> bias_correct.cmdline
229
- 'dwibiascorrect - ants dwi.mif dwi_biascorr.mif'
229
+ 'dwibiascorrect ants dwi.mif dwi_biascorr.mif'
230
230
>>> bias_correct.run() # doctest: +SKIP
231
231
"""
232
232
233
233
_cmd = "dwibiascorrect"
234
234
input_spec = DWIBiasCorrectInputSpec
235
235
output_spec = DWIBiasCorrectOutputSpec
236
-
236
+ def _format_arg (self , name , trait_spec , value ):
237
+ if name in ("use_ants" , "use_fsl" ):
238
+ ver = self .version
239
+ # Changed in version 3.0, after release candidates
240
+ if ver is not None and (ver [0 ] < "3" or ver .startswith ("3.0_RC" )):
241
+ return f"-{ trait_spec .argstr } "
242
+ super ()._format_arg (name , trait_spec , value )
237
243
238
244
class ResponseSDInputSpec (MRTrix3BaseInputSpec ):
239
245
algorithm = traits .Enum (
You can’t perform that action at this time.
0 commit comments