Skip to content

Commit 9d37260

Browse files
committed
removed default values for gradients' files outputs
1 parent 285f187 commit 9d37260

File tree

1 file changed

+17
-8
lines changed

1 file changed

+17
-8
lines changed

nipype/interfaces/mrtrix3/preprocess.py

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,9 @@ class DWIBiasCorrectInputSpec(MRTrix3BaseInputSpec):
192192
mandatory=True,
193193
desc="input DWI image",
194194
)
195-
in_mask = File(argstr="-mask %s", desc="input mask image for bias field estimation")
195+
in_mask = File(
196+
argstr="-mask %s", desc="input mask image for bias field estimation"
197+
)
196198
use_ants = traits.Bool(
197199
argstr="ants",
198200
mandatory=True,
@@ -343,13 +345,12 @@ class DWIPreprocInputSpec(MRTrix3BaseInputSpec):
343345
out_grad_mrtrix = File(
344346
"grad.b",
345347
argstr="%s",
346-
usedefault=True,
347348
requires=["export_grad_mrtrix"],
348349
desc="name of new gradient file",
349350
)
350351
out_grad_fsl = traits.Tuple(
351-
File("grad.bvecs", usedefault=True, desc="bvecs"),
352-
File("grad.bvals", usedefault=True, desc="bvals"),
352+
File("grad.bvecs", desc="bvecs"),
353+
File("grad.bvals", desc="bvals"),
353354
argstr="%s, %s",
354355
requires=["export_grad_fsl"],
355356
desc="Output (bvecs, bvals) gradients FSL format",
@@ -410,7 +411,9 @@ def _list_outputs(self):
410411
outputs = self.output_spec().get()
411412
outputs["out_file"] = op.abspath(self.inputs.out_file)
412413
if self.inputs.export_grad_mrtrix:
413-
outputs["out_grad_mrtrix"] = op.abspath(self.inputs.out_grad_mrtrix)
414+
outputs["out_grad_mrtrix"] = op.abspath(
415+
self.inputs.out_grad_mrtrix
416+
)
414417
if self.inputs.export_grad_fsl:
415418
outputs["out_fsl_bvec"] = op.abspath(self.inputs.out_grad_fsl[0])
416419
outputs["out_fsl_bval"] = op.abspath(self.inputs.out_grad_fsl[1])
@@ -444,9 +447,15 @@ class ResponseSDInputSpec(MRTrix3BaseInputSpec):
444447
usedefault=True,
445448
desc="output WM response text file",
446449
)
447-
gm_file = File(argstr="%s", position=-2, desc="output GM response text file")
448-
csf_file = File(argstr="%s", position=-1, desc="output CSF response text file")
449-
in_mask = File(exists=True, argstr="-mask %s", desc="provide initial mask image")
450+
gm_file = File(
451+
argstr="%s", position=-2, desc="output GM response text file"
452+
)
453+
csf_file = File(
454+
argstr="%s", position=-1, desc="output CSF response text file"
455+
)
456+
in_mask = File(
457+
exists=True, argstr="-mask %s", desc="provide initial mask image"
458+
)
450459
max_sh = InputMultiObject(
451460
traits.Int,
452461
argstr="-lmax %s",

0 commit comments

Comments
 (0)