55#
66# Docs
77# ----
8- #
8+ #
99# Conforms an input image.
10- #
10+ #
1111# List of nifti datatypes:
12- #
12+ #
1313# .. note: Original Analyze 7.5 types
14- #
14+ #
1515# DT_NONE 0
1616# DT_UNKNOWN 0 / what it says, dude /
1717# DT_BINARY 1 / binary (1 bit/voxel) /
2323# DT_DOUBLE 64 / double (64 bits/voxel) /
2424# DT_RGB 128 / RGB triple (24 bits/voxel) /
2525# DT_ALL 255 / not very useful (?) /
26- #
26+ #
2727# .. note: Added names for the same data types
28- #
28+ #
2929# DT_UINT8 2
3030# DT_INT16 4
3131# DT_INT32 8
3232# DT_FLOAT32 16
3333# DT_COMPLEX64 32
3434# DT_FLOAT64 64
3535# DT_RGB24 128
36- #
36+ #
3737# .. note: New codes for NIfTI
38- #
38+ #
3939# DT_INT8 256 / signed char (8 bits) /
4040# DT_UINT16 512 / unsigned short (16 bits) /
4141# DT_UINT32 768 / unsigned int (32 bits) /
5959# NIFTI_TYPE_FLOAT128 1536 /! 128 bit float = long double. /
6060# NIFTI_TYPE_COMPLEX128 1792 /! 128 bit complex = 2 64 bit floats. /
6161# NIFTI_TYPE_COMPLEX256 2048 /! 256 bit complex = 2 128 bit floats /
62- #
63- #
62+ #
63+ #
6464task_name : ConformImage
6565nipype_name : ConformImage
6666nipype_module : mriqc.interfaces.common.conform_image
@@ -70,11 +70,11 @@ inputs:
7070 rename :
7171 # dict[str, str] - fields to rename in the Pydra interface
7272 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.
7878 in_file : generic/file
7979 # type=file|default=<undefined>: input image
8080 callable_defaults :
@@ -88,11 +88,11 @@ outputs:
8888 rename :
8989 # dict[str, str] - fields to rename in the Pydra interface
9090 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.
9696 out_file : generic/file
9797 # type=file: output conformed file
9898 callables :
@@ -103,28 +103,34 @@ outputs:
103103 requirements :
104104 # dict[str, list[str]] - input fields that are required to be provided for the output field to be present
105105tests :
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
130130doctests : []
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