Skip to content

Commit ed2b9d9

Browse files
committed
fix example
1 parent 1ae9eb8 commit ed2b9d9

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

nipype/interfaces/afni/preprocess.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3483,12 +3483,17 @@ class Qwarp(AFNICommand):
34833483
>>> qwarp3.inputs.allineate = True
34843484
>>> qwarp3.inputs.allineate_opts = '-cose lpa -verb'
34853485
>>> qwarp3.cmdline # doctest: +ALLOW_UNICODE
3486-
"3dQwarp -base mni.nii -allineate -allineate_opts '-cost lpa -verb'"
3486+
"3dQwarp -allineate -allineate_opts '-cose lpa -verb' -base mni.nii -source structural.nii -prefix structural_QW"
34873487
>>> res3 = qwarp3.run() # doctest: +SKIP """
34883488
_cmd = '3dQwarp'
34893489
input_spec = QwarpInputSpec
34903490
output_spec = QwarpOutputSpec
34913491

3492+
def _format_arg(self, name, spec, value):
3493+
if name == 'allineate_opts':
3494+
return spec.argstr % ("'" + value + "'")
3495+
return super(Qwarp, self)._format_arg(name, spec, value)
3496+
34923497
def _list_outputs(self):
34933498
outputs = self.output_spec().get()
34943499

0 commit comments

Comments
 (0)