You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# passed to the field in the automatically generated unittests.
73
73
anat: medimage/nifti1
74
74
# type=file|default=<undefined>: name of structural dataset
75
-
in_file: medimage/nifti1
75
+
in_file: generic/file
76
76
# type=file|default=<undefined>: EPI dataset to align
77
77
callable_defaults:
78
78
# dict[str, str] - names of methods/callable classes defined in the adjacent `*_callables.py`
@@ -114,7 +114,7 @@ outputs:
114
114
# dict[str, str] - names of methods/callable classes defined in the adjacent `*_callables.py`
115
115
# to set to the `callable` attribute of output fields
116
116
templates:
117
-
# dict[str, str] - `output_file_template` values to be provided to output fields
117
+
# dict[str, str] - `path_template` values to be provided to output fields
118
118
requirements:
119
119
# dict[str, list[str]] - input fields that are required to be provided for the output field to be present
120
120
tests:
@@ -150,7 +150,7 @@ tests:
150
150
environ:
151
151
# type=dict|default={}: Environment variables
152
152
imports:
153
-
# list[nipype2pydra.task.base.importstatement] - list import statements required by the test, with each list item
153
+
# list[nipype2pydra.statements.imports.explicitimport] - list import statements required by the test, with each list item
154
154
# consisting of 'module', 'name', and optionally 'alias' keys
155
155
expected_outputs:
156
156
# dict[str, str] - expected values for selected outputs, noting that tests will typically
@@ -169,20 +169,14 @@ tests:
169
169
# (if not specified, will try to choose a sensible value)
170
170
anat:
171
171
# type=file|default=<undefined>: name of structural dataset
172
-
in_file:
173
-
# type=file|default=<undefined>: EPI dataset to align
174
172
epi_base: '0'
175
173
# type=traitcompound|default=None: the epi base used in alignmentshould be one of (0/mean/median/max/subbrick#)
176
-
epi_strip: '"3dAutomask"'
177
-
# type=enum|default='3dSkullStrip'|allowed['3dAutomask','3dSkullStrip','None']: method to mask brain in EPI datashould be one of[3dSkullStrip]/3dAutomask/None)
178
174
volreg: '"off"'
179
175
# type=enum|default='on'|allowed['off','on']: do volume registration on EPI dataset before alignmentshould be 'on' or 'off', defaults to 'on'
180
-
tshift: '"off"'
181
-
# type=enum|default='on'|allowed['off','on']: do time shifting of EPI dataset before alignmentshould be 'on' or 'off', defaults to 'on'
182
176
save_skullstrip: 'True'
183
177
# type=bool|default=False: save skull-stripped (not aligned)
184
178
imports:
185
-
# list[nipype2pydra.task.base.importstatement] - list import statements required by the test, with each list item
179
+
# list[nipype2pydra.statements.imports.explicitimport] - list import statements required by the test, with each list item
186
180
# consisting of 'module', 'name', and optionally 'alias' keys
187
181
expected_outputs:
188
182
# dict[str, str] - expected values for selected outputs, noting that tests will typically
@@ -197,28 +191,22 @@ tests:
197
191
# bool - whether the unittest is expected to fail or not. Set to false
198
192
# when you are satisfied with the edits you have made to this file
199
193
doctests:
200
-
- cmdline:python2 ...align_epi_anat.py -anat structural.nii -epi_base 0 -epi_strip 3dAutomask -epi functional.nii -save_skullstrip -suffix _al -tshift off -volreg off
194
+
- cmdline:
201
195
# str - the expected cmdline output
202
196
inputs:
203
197
# dict[str, str] - name-value pairs for inputs to be provided to the doctest.
204
198
# If the field is of file-format type and the value is None, then the
205
199
# '.mock()' method of the corresponding class is used instead.
206
200
anat: '"structural.nii"'
207
201
# type=file|default=<undefined>: name of structural dataset
208
-
in_file: '"functional.nii"'
209
-
# type=file|default=<undefined>: EPI dataset to align
210
202
epi_base: '0'
211
203
# type=traitcompound|default=None: the epi base used in alignmentshould be one of (0/mean/median/max/subbrick#)
212
-
epi_strip: '"3dAutomask"'
213
-
# type=enum|default='3dSkullStrip'|allowed['3dAutomask','3dSkullStrip','None']: method to mask brain in EPI datashould be one of[3dSkullStrip]/3dAutomask/None)
214
204
volreg: '"off"'
215
205
# type=enum|default='on'|allowed['off','on']: do volume registration on EPI dataset before alignmentshould be 'on' or 'off', defaults to 'on'
216
-
tshift: '"off"'
217
-
# type=enum|default='on'|allowed['off','on']: do time shifting of EPI dataset before alignmentshould be 'on' or 'off', defaults to 'on'
218
206
save_skullstrip: 'True'
219
207
# type=bool|default=False: save skull-stripped (not aligned)
220
208
imports:
221
-
# list[nipype2pydra.task.base.importstatement] - list import statements required by the test, with each list item
209
+
# list[nipype2pydra.statements.imports.explicitimport] - list import statements required by the test, with each list item
222
210
# consisting of 'module', 'name', and optionally 'alias' keys
223
211
directive:
224
212
# str - any doctest directive to place on the cmdline call, e.g. # doctest: +ELLIPSIS
0 commit comments