Skip to content

Commit a512faf

Browse files
author
Shoshana Berleant
committed
traits mandatory=False is incorrect; ignore unicode in doctests
1 parent d38562c commit a512faf

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

nipype/algorithms/confounds.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,10 +281,10 @@ def _list_outputs(self):
281281
class CompCorInputSpec(BaseInterfaceInputSpec):
282282
realigned_file = File(exists=True, mandatory=True,
283283
desc='already realigned brain image (4D)')
284-
mask_file = File(exists=True, mandatory=False,
284+
mask_file = File(exists=True,
285285
desc='mask file that determines ROI (3D)')
286286
components_file = File('components_file.txt', exists=False,
287-
mandatory=False, usedefault=True,
287+
usedefault=True,
288288
desc='filename to store physiological components')
289289
num_components = traits.Int(6, usedefault=True) # 6 for BOLD, 4 for ASL
290290
use_regress_poly = traits.Bool(True, usedefault=True,

nipype/interfaces/ants/resampling.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ class ApplyTransforms(ANTSCommand):
296296
>>> at1.inputs.default_value = 0
297297
>>> at1.inputs.transforms = ['ants_Warp.nii.gz', 'trans.mat']
298298
>>> at1.inputs.invert_transform_flags = [False, False]
299-
>>> at1.cmdline
299+
>>> at1.cmdline # doctest: +IGNORE_UNICODE
300300
'antsApplyTransforms --default-value 0 --dimensionality 3 --input moving1.nii --interpolation BSpline[ 5 ] \
301301
--output deformed_moving1.nii --reference-image fixed1.nii --transform [ ants_Warp.nii.gz, 0 ] \
302302
--transform [ trans.mat, 0 ]'
@@ -310,7 +310,7 @@ class ApplyTransforms(ANTSCommand):
310310
>>> atid.inputs.interpolation_parameters = (5,)
311311
>>> atid.inputs.default_value = 0
312312
>>> atid.inputs.transforms = 'identity'
313-
>>> atid.cmdline
313+
>>> atid.cmdline # doctest: +IGNORE_UNICODE
314314
'antsApplyTransforms --default-value 0 --dimensionality 3 --input moving1.nii \
315315
--interpolation BSpline[ 5 ] --output deformed_moving1.nii --reference-image fixed1.nii \
316316
--transform identity'

0 commit comments

Comments
 (0)