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):
226226 >>> bias_correct.inputs.in_file = 'dwi.mif'
227227 >>> bias_correct.inputs.use_ants = True
228228 >>> bias_correct.cmdline
229- 'dwibiascorrect - ants dwi.mif dwi_biascorr.mif'
229+ 'dwibiascorrect ants dwi.mif dwi_biascorr.mif'
230230 >>> bias_correct.run() # doctest: +SKIP
231231 """
232232
233233 _cmd = "dwibiascorrect"
234234 input_spec = DWIBiasCorrectInputSpec
235235 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 )
237243
238244class ResponseSDInputSpec (MRTrix3BaseInputSpec ):
239245 algorithm = traits .Enum (
You can’t perform that action at this time.
0 commit comments