Skip to content

Commit 753fb41

Browse files
committed
fixed errors from DOCTEST, now OK.
1 parent 657e124 commit 753fb41

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

nipype/interfaces/afni/preprocess.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ class AutoTcorrelateInputSpec(AFNICommandInputSpec):
329329
argstr="-mask %s")
330330
mask_only_targets = traits.Bool(desc="use mask only on targets voxels",
331331
argstr="-mask_only_targets",
332-
xor=['mask_source']))
332+
xor=['mask_source'])
333333
mask_source = File(exists=True,
334334
desc="mask for source voxels",
335335
argstr="-mask_source %s",

nipype/interfaces/freesurfer/utils.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -386,11 +386,11 @@ class Surface2VolTransformInputSpec(FSTraitedSpec):
386386
source_file = File(exists=True, argstr='--surfval %s',
387387
copyfile=False, mandatory=True,
388388
desc='This is the source of the surface values')
389-
hemi = traits.Str(argstr='--hemi %s',desc='hemisphere of data')
389+
hemi = traits.Str(argstr='--hemi %s', mandatory=True, desc='hemisphere of data')
390390
transformed_file = File(desc='Output volume', argstr='--outvol %s', genfile=True)
391391
reg_file = File(exists=True, argstr='--volreg %s',
392392
mandatory=True,
393-
desc='tkRAS-to-tkRAS matrix (tkregister2 format)'
393+
desc='tkRAS-to-tkRAS matrix (tkregister2 format)',
394394
xor=['subject_id'])
395395
template_file = File(exists=True, argstr='--template %s',
396396
desc='Output template volume')
@@ -413,11 +413,11 @@ class Surface2VolTransform(FSCommand):
413413
414414
>>> from nipype.interfaces.freesurfer import Surface2VolTransform
415415
>>> xfm2vol = Surface2VolTransform()
416-
>>> xfm2vol.inputs.source_file = 'surface.nii'
417-
>>> xfm2vol.inputs.reg_file = 'register.dat'
416+
>>> xfm2vol.inputs.source_file = 'lh.cope1.mgz'
417+
>>> xfm2vol.inputs.reg_file = 'register.mat'
418418
>>> xfm2vol.inputs.hemi = 'lh'
419-
>>> xfm2vol.cmdline
420-
'mri_surf2vol --volreg register.dat --surfval surface.nii --hemi lh'
419+
>>> xfm2vol.inputs.template_file = 'cope1.nii.gz'
420+
>>> res = xfm2vol.run()# doctest: +SKIP
421421
422422
"""
423423

nipype/testing/data/register.mat

Whitespace-only changes.

0 commit comments

Comments
 (0)