Skip to content

Commit e726ac4

Browse files
committed
updated docstrings to match the new configurations
1 parent 87e8704 commit e726ac4

File tree

1 file changed

+6
-16
lines changed

1 file changed

+6
-16
lines changed

nipype/interfaces/mrtrix3/preprocess.py

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -192,9 +192,7 @@ class DWIBiasCorrectInputSpec(MRTrix3BaseInputSpec):
192192
mandatory=True,
193193
desc="input DWI image",
194194
)
195-
in_mask = File(
196-
argstr="-mask %s", desc="input mask image for bias field estimation"
197-
)
195+
in_mask = File(argstr="-mask %s", desc="input mask image for bias field estimation")
198196
use_ants = traits.Bool(
199197
argstr="ants",
200198
mandatory=True,
@@ -386,7 +384,7 @@ class DWIPreproc(MRTrix3Base):
386384
>>> preproc.inputs.rpe_options = 'none'
387385
>>> preproc.inputs.out_file = "preproc.mif"
388386
>>> preproc.inputs.eddy_options = '--slm=linear --repol' # linear second level model and replace outliers
389-
>>> preproc.inputs.export_grad_mrtrix = True # export final gradient table in MRtrix format
387+
>>> preproc.inputs.out_grad_mrtrix = "grad.b" # export final gradient table in MRtrix format
390388
>>> preproc.inputs.ro_time = 0.165240 # 'TotalReadoutTime' in BIDS JSON metadata files
391389
>>> preproc.inputs.pe_dir = 'j' # 'PhaseEncodingDirection' in BIDS JSON metadata files
392390
>>> preproc.cmdline
@@ -402,9 +400,7 @@ def _list_outputs(self):
402400
outputs = self.output_spec().get()
403401
outputs["out_file"] = op.abspath(self.inputs.out_file)
404402
if self.inputs.export_grad_mrtrix:
405-
outputs["out_grad_mrtrix"] = op.abspath(
406-
self.inputs.out_grad_mrtrix
407-
)
403+
outputs["out_grad_mrtrix"] = op.abspath(self.inputs.out_grad_mrtrix)
408404
if self.inputs.export_grad_fsl:
409405
outputs["out_fsl_bvec"] = op.abspath(self.inputs.out_grad_fsl[0])
410406
outputs["out_fsl_bval"] = op.abspath(self.inputs.out_grad_fsl[1])
@@ -438,15 +434,9 @@ class ResponseSDInputSpec(MRTrix3BaseInputSpec):
438434
usedefault=True,
439435
desc="output WM response text file",
440436
)
441-
gm_file = File(
442-
argstr="%s", position=-2, desc="output GM response text file"
443-
)
444-
csf_file = File(
445-
argstr="%s", position=-1, desc="output CSF response text file"
446-
)
447-
in_mask = File(
448-
exists=True, argstr="-mask %s", desc="provide initial mask image"
449-
)
437+
gm_file = File(argstr="%s", position=-2, desc="output GM response text file")
438+
csf_file = File(argstr="%s", position=-1, desc="output CSF response text file")
439+
in_mask = File(exists=True, argstr="-mask %s", desc="provide initial mask image")
450440
max_sh = InputMultiObject(
451441
traits.Int,
452442
argstr="-lmax %s",

0 commit comments

Comments
 (0)