Skip to content

Commit a6f5218

Browse files
committed
DOC/TEST: Fix MRICoreg doctests
1 parent 1a991b9 commit a6f5218

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

nipype/interfaces/freesurfer/registration.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -442,20 +442,23 @@ class MRICoreg(FSCommand):
442442
443443
If passing a subject ID, the reference mask may be disabled:
444444
445+
>>> coreg = MRICoreg()
446+
>>> coreg.inputs.source_file = 'moving1.nii'
447+
>>> coreg.inputs.subjects_dir = '.'
445448
>>> coreg.inputs.subject_id = 'fsaverage'
446449
>>> coreg.inputs.reference_mask = False
447450
>>> coreg.cmdline # doctest: +ALLOW_UNICODE +ELLIPSIS
448-
'mri_coreg --s fsaverage --no-ref-mask --lta .../registration.lta --ref fixed1.nii --mov moving1.nii --sd .'
451+
'mri_coreg --s fsaverage --no-ref-mask --lta .../registration.lta --mov moving1.nii --sd .'
449452
450453
Spatial scales may be specified as a list of one or two separations:
451454
452455
>>> coreg.inputs.sep = [4]
453456
>>> coreg.cmdline # doctest: +ALLOW_UNICODE +ELLIPSIS
454-
'mri_coreg --s fsaverage --no-ref-mask --lta .../registration.lta --ref fixed1.nii --sep 4 --mov moving1.nii --sd .'
457+
'mri_coreg --s fsaverage --no-ref-mask --lta .../registration.lta --sep 4 --mov moving1.nii --sd .'
455458
456459
>>> coreg.inputs.sep = [4, 5]
457460
>>> coreg.cmdline # doctest: +ALLOW_UNICODE +ELLIPSIS
458-
'mri_coreg --s fsaverage --no-ref-mask --lta .../registration.lta --ref fixed1.nii --sep 4 --sep 5 --mov moving1.nii --sd .'
461+
'mri_coreg --s fsaverage --no-ref-mask --lta .../registration.lta --sep 4 --sep 5 --mov moving1.nii --sd .'
459462
"""
460463

461464
_cmd = 'mri_coreg'

0 commit comments

Comments
 (0)