5
5
#
6
6
# Docs
7
7
# ----
8
- #
8
+ #
9
9
# Conforms an input image.
10
- #
10
+ #
11
11
# List of nifti datatypes:
12
- #
12
+ #
13
13
# .. note: Original Analyze 7.5 types
14
- #
14
+ #
15
15
# DT_NONE 0
16
16
# DT_UNKNOWN 0 / what it says, dude /
17
17
# DT_BINARY 1 / binary (1 bit/voxel) /
23
23
# DT_DOUBLE 64 / double (64 bits/voxel) /
24
24
# DT_RGB 128 / RGB triple (24 bits/voxel) /
25
25
# DT_ALL 255 / not very useful (?) /
26
- #
26
+ #
27
27
# .. note: Added names for the same data types
28
- #
28
+ #
29
29
# DT_UINT8 2
30
30
# DT_INT16 4
31
31
# DT_INT32 8
32
32
# DT_FLOAT32 16
33
33
# DT_COMPLEX64 32
34
34
# DT_FLOAT64 64
35
35
# DT_RGB24 128
36
- #
36
+ #
37
37
# .. note: New codes for NIfTI
38
- #
38
+ #
39
39
# DT_INT8 256 / signed char (8 bits) /
40
40
# DT_UINT16 512 / unsigned short (16 bits) /
41
41
# DT_UINT32 768 / unsigned int (32 bits) /
59
59
# NIFTI_TYPE_FLOAT128 1536 /! 128 bit float = long double. /
60
60
# NIFTI_TYPE_COMPLEX128 1792 /! 128 bit complex = 2 64 bit floats. /
61
61
# NIFTI_TYPE_COMPLEX256 2048 /! 256 bit complex = 2 128 bit floats /
62
- #
63
- #
62
+ #
63
+ #
64
64
task_name : ConformImage
65
65
nipype_name : ConformImage
66
66
nipype_module : mriqc.interfaces.common.conform_image
@@ -70,11 +70,11 @@ inputs:
70
70
rename :
71
71
# dict[str, str] - fields to rename in the Pydra interface
72
72
types :
73
- # dict[str, type] - override inferred types (use "mime-like" string for file-format types,
74
- # e.g. 'medimage/nifti-gz'). For most fields the type will be correctly inferred
75
- # from the nipype interface, but you may want to be more specific, particularly
76
- # for file types, where specifying the format also specifies the file that will be
77
- # passed to the field in the automatically generated unittests.
73
+ # dict[str, type] - override inferred types (use "mime-like" string for file-format types,
74
+ # e.g. 'medimage/nifti-gz'). For most fields the type will be correctly inferred
75
+ # from the nipype interface, but you may want to be more specific, particularly
76
+ # for file types, where specifying the format also specifies the file that will be
77
+ # passed to the field in the automatically generated unittests.
78
78
in_file : generic/file
79
79
# type=file|default=<undefined>: input image
80
80
callable_defaults :
@@ -88,11 +88,11 @@ outputs:
88
88
rename :
89
89
# dict[str, str] - fields to rename in the Pydra interface
90
90
types :
91
- # dict[str, type] - override inferred types (use "mime-like" string for file-format types,
92
- # e.g. 'medimage/nifti-gz'). For most fields the type will be correctly inferred
93
- # from the nipype interface, but you may want to be more specific, particularly
94
- # for file types, where specifying the format also specifies the file that will be
95
- # passed to the field in the automatically generated unittests.
91
+ # dict[str, type] - override inferred types (use "mime-like" string for file-format types,
92
+ # e.g. 'medimage/nifti-gz'). For most fields the type will be correctly inferred
93
+ # from the nipype interface, but you may want to be more specific, particularly
94
+ # for file types, where specifying the format also specifies the file that will be
95
+ # passed to the field in the automatically generated unittests.
96
96
out_file : generic/file
97
97
# type=file: output conformed file
98
98
callables :
@@ -103,28 +103,34 @@ outputs:
103
103
requirements :
104
104
# dict[str, list[str]] - input fields that are required to be provided for the output field to be present
105
105
tests :
106
- - inputs :
107
- # dict[str, str] - values to provide to inputs fields in the task initialisation
108
- # (if not specified, will try to choose a sensible value)
109
- in_file :
110
- # type=file|default=<undefined>: input image
111
- check_ras :
112
- # type=bool|default=True: check that orientation is RAS
113
- check_dtype :
114
- # type=bool|default=True: check data type
115
- imports :
116
- # list[nipype2pydra.task.base.explicitimport] - list import statements required by the test, with each list item
117
- # consisting of 'module', 'name', and optionally 'alias' keys
118
- expected_outputs :
119
- # dict[str, str] - expected values for selected outputs, noting that tests will typically
120
- # be terminated before they complete for time-saving reasons, and therefore
121
- # these values will be ignored, when running in CI
122
- timeout : 10
123
- # int - the value to set for the timeout in the generated test,
124
- # after which the test will be considered to have been initialised
125
- # successfully. Set to 0 to disable the timeout (warning, this could
126
- # lead to the unittests taking a very long time to complete)
127
- xfail : true
128
- # bool - whether the unittest is expected to fail or not. Set to false
129
- # when you are satisfied with the edits you have made to this file
106
+ - inputs :
107
+ # dict[str, str] - values to provide to inputs fields in the task initialisation
108
+ # (if not specified, will try to choose a sensible value)
109
+ in_file :
110
+ # type=file|default=<undefined>: input image
111
+ check_ras :
112
+ # type=bool|default=True: check that orientation is RAS
113
+ check_dtype :
114
+ # type=bool|default=True: check data type
115
+ imports :
116
+ # list[nipype2pydra.task.base.explicitimport] - list import statements required by the test, with each list item
117
+ # consisting of 'module', 'name', and optionally 'alias' keys
118
+ expected_outputs :
119
+ # dict[str, str] - expected values for selected outputs, noting that tests will typically
120
+ # be terminated before they complete for time-saving reasons, and therefore
121
+ # these values will be ignored, when running in CI
122
+ timeout : 10
123
+ # int - the value to set for the timeout in the generated test,
124
+ # after which the test will be considered to have been initialised
125
+ # successfully. Set to 0 to disable the timeout (warning, this could
126
+ # lead to the unittests taking a very long time to complete)
127
+ xfail : true
128
+ # bool - whether the unittest is expected to fail or not. Set to false
129
+ # when you are satisfied with the edits you have made to this file
130
130
doctests : []
131
+ find_replace :
132
+ - [config\.loggers\.interface, "logger"]
133
+ - [
134
+ messages\.SUSPICIOUS_DATA_TYPE,
135
+ ' "Input image {in_file} has a suspicious data type: '' {dtype}'' "' ,
136
+ ]
0 commit comments