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):
152
152
in Pydra Task outputs.
153
153
154
154
>>> import pytest
155
- >>> from pydra.tasks .nipype1.tests import load_resource
155
+ >>> from pydra.compose .nipype1.tests import load_resource
156
156
>>> from nipype.interfaces import fsl
157
157
>>> if fsl.Info.version() is None:
158
158
... pytest.skip()
159
159
>>> img = load_resource('nipype', 'testing/data/tpms_msk.nii.gz')
160
160
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)
165
164
>>> 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')
168
167
"""
169
168
170
169
_task_type = "nipype1"
You can’t perform that action at this time.
0 commit comments