File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -152,19 +152,18 @@ class Nipype1Task(base.Task):
152152 in Pydra Task outputs.
153153
154154 >>> import pytest
155- >>> from pydra.tasks .nipype1.tests import load_resource
155+ >>> from pydra.compose .nipype1.tests import load_resource
156156 >>> from nipype.interfaces import fsl
157157 >>> if fsl.Info.version() is None:
158158 ... pytest.skip()
159159 >>> img = load_resource('nipype', 'testing/data/tpms_msk.nii.gz')
160160
161- >>> from pydra.tasks.nipype1.utils import Nipype1Task
162- >>> thresh = Nipype1Task(fsl.Threshold())
163- >>> thresh.inputs.in_file = img
164- >>> thresh.inputs.thresh = 0.5
161+ >>> from pydra.compose.nipype1.builder import define
162+ >>> Threshold = define(fsl.Threshold())
163+ >>> thresh = Threshold(in_file=img, thresh=0.5)
165164 >>> res = thresh()
166- >>> res.output. out_file # DOCTEST: +ELLIPSIS
167- '.../tpms_msk_thresh.nii.gz'
165+ >>> res.out_file # DOCTEST: +ELLIPSIS
166+ File( '.../tpms_msk_thresh.nii.gz')
168167 """
169168
170169 _task_type = "nipype1"
You can’t perform that action at this time.
0 commit comments