Skip to content

Commit c48f72f

Browse files
committed
updated threed, oned formats to three-d, one-d
1 parent 22c9ae2 commit c48f72f

File tree

12 files changed

+1467
-1467
lines changed

12 files changed

+1467
-1467
lines changed

nipype-auto-conv/specs/afn_ito_nifti.yaml

Lines changed: 93 additions & 93 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
# ----
88
# Converts AFNI format files to NIFTI format. This can also convert 2D or
99
# 1D data, which you can numpy.squeeze() to remove extra dimensions.
10-
#
10+
#
1111
# For complete details, see the `3dAFNItoNIFTI Documentation.
1212
# <https://afni.nimh.nih.gov/pub/dist/doc/program_help/3dAFNItoNIFTI.html>`_
13-
#
13+
#
1414
# Examples
1515
# --------
1616
# >>> from nipype.interfaces import afni
@@ -20,8 +20,8 @@
2020
# >>> a2n.cmdline
2121
# '3dAFNItoNIFTI -prefix afni_output.nii afni_output.3D'
2222
# >>> res = a2n.run() # doctest: +SKIP
23-
#
24-
#
23+
#
24+
#
2525
task_name: AFNItoNIFTI
2626
nipype_name: AFNItoNIFTI
2727
nipype_module: nipype.interfaces.afni.utils
@@ -31,12 +31,12 @@ inputs:
3131
rename:
3232
# dict[str, str] - fields to rename in the Pydra interface
3333
types:
34-
# dict[str, type] - override inferred types (use "mime-like" string for file-format types,
35-
# e.g. 'medimage/nifti-gz'). For most fields the type will be correctly inferred
36-
# from the nipype interface, but you may want to be more specific, particularly
37-
# for file types, where specifying the format also specifies the file that will be
38-
# passed to the field in the automatically generated unittests.
39-
in_file: medimage-afni/threed
34+
# dict[str, type] - override inferred types (use "mime-like" string for file-format types,
35+
# e.g. 'medimage/nifti-gz'). For most fields the type will be correctly inferred
36+
# from the nipype interface, but you may want to be more specific, particularly
37+
# for file types, where specifying the format also specifies the file that will be
38+
# passed to the field in the automatically generated unittests.
39+
in_file: medimage-afni/three-d
4040
# type=file|default=<undefined>: input file to 3dAFNItoNIFTI
4141
out_file: Path
4242
# type=file: output file
@@ -52,11 +52,11 @@ outputs:
5252
rename:
5353
# dict[str, str] - fields to rename in the Pydra interface
5454
types:
55-
# dict[str, type] - override inferred types (use "mime-like" string for file-format types,
56-
# e.g. 'medimage/nifti-gz'). For most fields the type will be correctly inferred
57-
# from the nipype interface, but you may want to be more specific, particularly
58-
# for file types, where specifying the format also specifies the file that will be
59-
# passed to the field in the automatically generated unittests.
55+
# dict[str, type] - override inferred types (use "mime-like" string for file-format types,
56+
# e.g. 'medimage/nifti-gz'). For most fields the type will be correctly inferred
57+
# from the nipype interface, but you may want to be more specific, particularly
58+
# for file types, where specifying the format also specifies the file that will be
59+
# passed to the field in the automatically generated unittests.
6060
out_file: medimage/nifti1
6161
# type=file: output file
6262
# type=file|default=<undefined>: output image file name
@@ -68,82 +68,82 @@ outputs:
6868
requirements:
6969
# dict[str, list[str]] - input fields that are required to be provided for the output field to be present
7070
tests:
71-
- inputs:
72-
# dict[str, str] - values to provide to inputs fields in the task initialisation
73-
# (if not specified, will try to choose a sensible value)
74-
in_file:
75-
# type=file|default=<undefined>: input file to 3dAFNItoNIFTI
76-
out_file:
77-
# type=file: output file
78-
# type=file|default=<undefined>: output image file name
79-
pure:
80-
# type=bool|default=False: Do NOT write an AFNI extension field into the output file. Only use this option if needed. You can also use the 'nifti_tool' program to strip extensions from a file.
81-
denote:
82-
# type=bool|default=False: When writing the AFNI extension field, remove text notes that might contain subject identifying information.
83-
oldid:
84-
# type=bool|default=False: Give the new dataset the input datasets AFNI ID code.
85-
newid:
86-
# type=bool|default=False: Give the new dataset a new AFNI ID code, to distinguish it from the input dataset.
87-
num_threads:
88-
# type=int|default=1: set number of threads
89-
outputtype:
90-
# type=enum|default='AFNI'|allowed['AFNI','NIFTI','NIFTI_GZ']: AFNI output filetype
91-
args:
92-
# type=str|default='': Additional parameters to the command
93-
environ:
94-
# type=dict|default={}: Environment variables
95-
imports:
96-
# list[nipype2pydra.task.base.importstatement] - list import statements required by the test, with each list item
97-
# consisting of 'module', 'name', and optionally 'alias' keys
98-
expected_outputs:
99-
# dict[str, str] - expected values for selected outputs, noting that tests will typically
100-
# be terminated before they complete for time-saving reasons, and therefore
101-
# these values will be ignored, when running in CI
102-
timeout: 10
103-
# int - the value to set for the timeout in the generated test,
104-
# after which the test will be considered to have been initialised
105-
# successfully. Set to 0 to disable the timeout (warning, this could
106-
# lead to the unittests taking a very long time to complete)
107-
xfail: true
108-
# bool - whether the unittest is expected to fail or not. Set to false
109-
# when you are satisfied with the edits you have made to this file
110-
- inputs:
111-
# dict[str, str] - values to provide to inputs fields in the task initialisation
112-
# (if not specified, will try to choose a sensible value)
113-
in_file:
114-
# type=file|default=<undefined>: input file to 3dAFNItoNIFTI
115-
out_file: ' "afni_output.nii"'
116-
# type=file: output file
117-
# type=file|default=<undefined>: output image file name
118-
imports:
119-
# list[nipype2pydra.task.base.importstatement] - list import statements required by the test, with each list item
120-
# consisting of 'module', 'name', and optionally 'alias' keys
121-
expected_outputs:
122-
# dict[str, str] - expected values for selected outputs, noting that tests will typically
123-
# be terminated before they complete for time-saving reasons, and therefore
124-
# these values will be ignored, when running in CI
125-
timeout: 10
126-
# int - the value to set for the timeout in the generated test,
127-
# after which the test will be considered to have been initialised
128-
# successfully. Set to 0 to disable the timeout (warning, this could
129-
# lead to the unittests taking a very long time to complete)
130-
xfail: true
131-
# bool - whether the unittest is expected to fail or not. Set to false
132-
# when you are satisfied with the edits you have made to this file
71+
- inputs:
72+
# dict[str, str] - values to provide to inputs fields in the task initialisation
73+
# (if not specified, will try to choose a sensible value)
74+
in_file:
75+
# type=file|default=<undefined>: input file to 3dAFNItoNIFTI
76+
out_file:
77+
# type=file: output file
78+
# type=file|default=<undefined>: output image file name
79+
pure:
80+
# type=bool|default=False: Do NOT write an AFNI extension field into the output file. Only use this option if needed. You can also use the 'nifti_tool' program to strip extensions from a file.
81+
denote:
82+
# type=bool|default=False: When writing the AFNI extension field, remove text notes that might contain subject identifying information.
83+
oldid:
84+
# type=bool|default=False: Give the new dataset the input datasets AFNI ID code.
85+
newid:
86+
# type=bool|default=False: Give the new dataset a new AFNI ID code, to distinguish it from the input dataset.
87+
num_threads:
88+
# type=int|default=1: set number of threads
89+
outputtype:
90+
# type=enum|default='AFNI'|allowed['AFNI','NIFTI','NIFTI_GZ']: AFNI output filetype
91+
args:
92+
# type=str|default='': Additional parameters to the command
93+
environ:
94+
# type=dict|default={}: Environment variables
95+
imports:
96+
# list[nipype2pydra.task.base.importstatement] - list import statements required by the test, with each list item
97+
# consisting of 'module', 'name', and optionally 'alias' keys
98+
expected_outputs:
99+
# dict[str, str] - expected values for selected outputs, noting that tests will typically
100+
# be terminated before they complete for time-saving reasons, and therefore
101+
# these values will be ignored, when running in CI
102+
timeout: 10
103+
# int - the value to set for the timeout in the generated test,
104+
# after which the test will be considered to have been initialised
105+
# successfully. Set to 0 to disable the timeout (warning, this could
106+
# lead to the unittests taking a very long time to complete)
107+
xfail: true
108+
# bool - whether the unittest is expected to fail or not. Set to false
109+
# when you are satisfied with the edits you have made to this file
110+
- inputs:
111+
# dict[str, str] - values to provide to inputs fields in the task initialisation
112+
# (if not specified, will try to choose a sensible value)
113+
in_file:
114+
# type=file|default=<undefined>: input file to 3dAFNItoNIFTI
115+
out_file: ' "afni_output.nii"'
116+
# type=file: output file
117+
# type=file|default=<undefined>: output image file name
118+
imports:
119+
# list[nipype2pydra.task.base.importstatement] - list import statements required by the test, with each list item
120+
# consisting of 'module', 'name', and optionally 'alias' keys
121+
expected_outputs:
122+
# dict[str, str] - expected values for selected outputs, noting that tests will typically
123+
# be terminated before they complete for time-saving reasons, and therefore
124+
# these values will be ignored, when running in CI
125+
timeout: 10
126+
# int - the value to set for the timeout in the generated test,
127+
# after which the test will be considered to have been initialised
128+
# successfully. Set to 0 to disable the timeout (warning, this could
129+
# lead to the unittests taking a very long time to complete)
130+
xfail: true
131+
# bool - whether the unittest is expected to fail or not. Set to false
132+
# when you are satisfied with the edits you have made to this file
133133
doctests:
134-
- cmdline: 3dAFNItoNIFTI -prefix afni_output.nii afni_output.3D
135-
# str - the expected cmdline output
136-
inputs:
137-
# dict[str, str] - name-value pairs for inputs to be provided to the doctest.
138-
# If the field is of file-format type and the value is None, then the
139-
# '.mock()' method of the corresponding class is used instead.
140-
in_file:
141-
# type=file|default=<undefined>: input file to 3dAFNItoNIFTI
142-
out_file: ' "afni_output.nii"'
143-
# type=file: output file
144-
# type=file|default=<undefined>: output image file name
145-
imports:
146-
# list[nipype2pydra.task.base.importstatement] - list import statements required by the test, with each list item
147-
# consisting of 'module', 'name', and optionally 'alias' keys
148-
directive:
149-
# str - any doctest directive to place on the cmdline call, e.g. # doctest: +ELLIPSIS
134+
- cmdline: 3dAFNItoNIFTI -prefix afni_output.nii afni_output.3D
135+
# str - the expected cmdline output
136+
inputs:
137+
# dict[str, str] - name-value pairs for inputs to be provided to the doctest.
138+
# If the field is of file-format type and the value is None, then the
139+
# '.mock()' method of the corresponding class is used instead.
140+
in_file:
141+
# type=file|default=<undefined>: input file to 3dAFNItoNIFTI
142+
out_file: ' "afni_output.nii"'
143+
# type=file: output file
144+
# type=file|default=<undefined>: output image file name
145+
imports:
146+
# list[nipype2pydra.task.base.importstatement] - list import statements required by the test, with each list item
147+
# consisting of 'module', 'name', and optionally 'alias' keys
148+
directive:
149+
# str - any doctest directive to place on the cmdline call, e.g. # doctest: +ELLIPSIS

0 commit comments

Comments
 (0)