Skip to content

Commit 84adfcd

Browse files
committed
fixing doctests
1 parent 3ab6250 commit 84adfcd

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

nipype/interfaces/niftyseg/maths.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,8 @@ class UnaryMaths(MathsCommand):
149149
>>> node.inputs.in_file = 'im1.nii'
150150
>>> node.inputs.operation = 'sqrt'
151151
>>> node.inputs.output_datatype = 'float'
152-
>>> node.cmdline # doctest: +ALLOW_UNICODE
153-
'seg_maths im1.nii -sqrt -odt float im1_sqrt.nii'
152+
>>> node.cmdline # doctest: +ELLIPSIS +ALLOW_UNICODE
153+
'seg_maths im1.nii -sqrt -odt float .../im1_sqrt.nii'
154154
155155
"""
156156
input_spec = UnaryMathsInput
@@ -237,8 +237,8 @@ class BinaryMaths(MathsCommand):
237237
>>> node.inputs.operation = 'sub'
238238
>>> node.inputs.operand_file = 'im2.nii'
239239
>>> node.inputs.output_datatype = 'float'
240-
>>> node.cmdline # doctest: +ALLOW_UNICODE
241-
'seg_maths im1.nii -sub im2.nii -odt float im1_sub.nii'
240+
>>> node.cmdline # doctest: +ELLIPSIS +ALLOW_UNICODE
241+
'seg_maths im1.nii -sub im2.nii -odt float .../im1_sub.nii'
242242
243243
"""
244244
input_spec = BinaryMathsInput
@@ -305,8 +305,8 @@ class BinaryMathsInteger(MathsCommand):
305305
>>> node.inputs.operation = 'dil'
306306
>>> node.inputs.operand_value = 2
307307
>>> node.inputs.output_datatype = 'float'
308-
>>> node.cmdline # doctest: +ALLOW_UNICODE
309-
'seg_maths im1.nii -dil 2 -odt float im1_dil.nii'
308+
>>> node.cmdline # doctest: +ELLIPSIS +ALLOW_UNICODE
309+
'seg_maths im1.nii -dil 2 -odt float .../im1_dil.nii'
310310
311311
"""
312312
input_spec = BinaryMathsInputInteger
@@ -376,8 +376,8 @@ class TupleMaths(MathsCommand):
376376
>>> node.inputs.operand_file1 = 'im2.nii'
377377
>>> node.inputs.operand_value2 = 2.0
378378
>>> node.inputs.output_datatype = 'float'
379-
>>> node.cmdline # doctest: +ALLOW_UNICODE
380-
'seg_maths im1.nii -lncc im2.nii 2.00000000 -odt float im1_lncc.nii'
379+
>>> node.cmdline # doctest: +ELLIPSIS +ALLOW_UNICODE
380+
'seg_maths im1.nii -lncc im2.nii 2.00000000 -odt float .../im1_lncc.nii'
381381
382382
"""
383383
input_spec = TupleMathsInput
@@ -417,9 +417,9 @@ class Merge(MathsCommand):
417417
>>> node.inputs.merge_files = files
418418
>>> node.inputs.dimension = 2
419419
>>> node.inputs.output_datatype = 'float'
420-
>>> node.cmdline # doctest: +ALLOW_UNICODE
420+
>>> node.cmdline # doctest: +ELLIPSIS +ALLOW_UNICODE
421421
'seg_maths im1.nii -merge 2 2 im2.nii im3.nii -odt float \
422-
im1_merged.nii'
422+
.../im1_merged.nii'
423423
424424
"""
425425
input_spec = MergeInput

0 commit comments

Comments
 (0)