Skip to content

Commit 7bf02dd

Browse files
committed
TST: Fix doctest
1 parent af4b3f3 commit 7bf02dd

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

nibabies/interfaces/conftest.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ def _chdir(path):
3333
'sub-01_run-01_echo-1_bold.nii.gz',
3434
'sub-01_run-01_echo-2_bold.nii.gz',
3535
'sub-01_run-01_echo-3_bold.nii.gz',
36+
'xfm0.h5',
37+
'xfm1.h5',
3638
)
3739

3840

nibabies/interfaces/patches.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,18 +59,18 @@ class ConcatXFMOutputSpec(TraitedSpec):
5959

6060
class ConcatXFM(ANTSCommand):
6161
"""
62-
Streamed use of antsApplyTransforms to combine nonlinear xfms into a single file
62+
Streamed use of antsApplyTransforms to combine multiple xfms into a single file
6363
6464
Examples
6565
--------
6666
6767
>>> from nibabies.interfaces.patches import ConcatXFM
6868
>>> cxfm = ConcatXFM()
69-
>>> cxfm.inputs.transforms = ['xfm1.h5', 'xfm0.h5']
70-
>>> cxfm.inputs.reference_image = 'sub-01_T1w.nii.gz'
71-
>>> cxfm.cmdline
72-
'antsApplyTransforms --output [ concat_xfm.h5, 1 ] --transform .../xfm1.h5 \
73-
--transform .../xfm0.h5 --reference_image .../sub-01_T1w.nii.gz'
69+
>>> cxfm.inputs.transforms = [testdir / 'xfm0.h5', testdir / 'xfm1.h5']
70+
>>> cxfm.inputs.reference_image = testdir / 'anatomical.nii'
71+
>>> cxfm.cmdline # doctest: +ELLIPSIS +NORMALIZE_WHITESPACE
72+
'antsApplyTransforms --output [ concat_xfm.h5, 1 ] --reference-image .../anatomical.nii \
73+
--transform .../xfm0.h5 --transform .../xfm1.h5'
7474
7575
"""
7676

0 commit comments

Comments
 (0)