Skip to content

Commit 99bfaea

Browse files
author
blakedewey
committed
Fixed doctest
1 parent 40fc710 commit 99bfaea

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

nipype/interfaces/ants/segmentation.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,8 @@ class N4BiasFieldCorrection(ANTSCommand):
268268
269269
Examples
270270
--------
271-
271+
272+
>>> import copy
272273
>>> from nipype.interfaces.ants import N4BiasFieldCorrection
273274
>>> n4 = N4BiasFieldCorrection()
274275
>>> n4.inputs.dimension = 3
@@ -278,15 +279,15 @@ class N4BiasFieldCorrection(ANTSCommand):
278279
>>> n4.inputs.n_iterations = [50,50,30,20]
279280
>>> n4.inputs.convergence_threshold = 1e-6
280281
>>> n4.cmdline
281-
'N4BiasFieldCorrection --bsline-fitting [ 300 ] \
282+
'N4BiasFieldCorrection --bspline-fitting [ 300 ] \
282283
--image-dimension 3 --input-image structural.nii \
283284
--convergence [ 50x50x30x20, 1e-06 ] --output structural_corrected.nii \
284285
--shrink-factor 3'
285286
286-
>>> n4_2 = n4.clone()
287+
>>> n4_2 = copy.deepcopy(n4)
287288
>>> n4_2.inputs.bspline_order = 5
288289
>>> n4_2.cmdline
289-
'N4BiasFieldCorrection --bsline-fitting [ 300, 5 ] \
290+
'N4BiasFieldCorrection --bspline-fitting [ 300, 5 ] \
290291
--image-dimension 3 --input-image structural.nii \
291292
--convergence [ 50x50x30x20, 1e-06 ] --output structural_corrected.nii \
292293
--shrink-factor 3'

0 commit comments

Comments
 (0)