@@ -12,6 +12,7 @@ PhaseSuffixDeprecated:
12
12
level : warning
13
13
selectors :
14
14
- datatype == "func"
15
+ - match(extension, "^\.nii(\.gz)?$")
15
16
checks :
16
17
- suffix != "phase"
17
18
@@ -67,6 +68,7 @@ SliceTimingGreaterThanRepetitionTime:
67
68
level : error
68
69
selectors :
69
70
- suffix == "bold"
71
+ - match(extension, "^\.nii(\.gz)?$")
70
72
- type(sidecar.SliceTiming) != "null"
71
73
- type(sidecar.RepetitionTime) != "null"
72
74
checks :
@@ -88,24 +90,24 @@ VolumeTimingRepetitionTimeMutex:
88
90
or 'VolumeTiming' when variable times are used.
89
91
level : error
90
92
selectors :
91
- - type(nifti_header) != "null"
92
93
- intersects([suffix], ["asl", "bold"])
94
+ - match(extension, "^\.nii(\.gz)?$")
93
95
- type(sidecar.VolumeTiming) != "null"
94
96
checks :
95
97
- type(sidecar.RepetitionTime) == "null"
96
98
97
- RepetitionTimeAcquisitionDurationMutex :
99
+ RepetitionTimeFrameAcquisitionDurationMutex :
98
100
issue :
99
101
code : REPETITION_TIME_AND_ACQUISITION_DURATION_MUTUALLY_EXCLUSIVE
100
102
message : |
101
- The fields 'RepetitionTime' and 'AcquisitionDuration ' for this file are mutually exclusive.
103
+ The fields 'RepetitionTime' and 'FrameAcquisitionDuration ' for this file are mutually exclusive.
102
104
To specify acquisition duration, use 'SliceTiming' or 'DelayTime'
103
- (RepetitionTime - AcquisitionDuration ).
105
+ (RepetitionTime - FrameAcquisitionDuration ).
104
106
level : error
105
107
selectors :
106
- - type(nifti_header) != "null"
107
108
- intersects([suffix], ["asl", "bold"])
108
- - type(sidecar.AcquisitionDuration) != "null"
109
+ - match(extension, "^\.nii(\.gz)?$")
110
+ - type(sidecar.FrameAcquisitionDuration) != "null"
109
111
checks :
110
112
- type(sidecar.RepetitionTime) == "null"
111
113
@@ -114,24 +116,44 @@ VolumeTimingDelayTimeMutex:
114
116
code : VOLUME_TIMING_AND_DELAY_TIME_MUTUALLY_EXCLUSIVE
115
117
message : |
116
118
The fields 'VolumeTiming' and 'DelayTime' for this file are mutually exclusive.
117
- To specify acquisition duration, use 'AcquisitionDuration ' or 'SliceTiming'.
119
+ To specify acquisition duration, use 'FrameAcquisitionDuration ' or 'SliceTiming'.
118
120
level : error
119
121
selectors :
120
- - type(nifti_header) != "null"
121
122
- intersects([suffix], ["asl", "bold"])
123
+ - match(extension, "^\.nii(\.gz)?$")
122
124
- type(sidecar.VolumeTiming) != "null"
125
+ - type(sidecar.RepetitionTime) == "null"
123
126
checks :
124
127
- type(sidecar.DelayTime) == "null"
125
128
126
- VolumeTimingMissingAcquisitionDuration :
129
+ VolumeTimingMissingFrameAcquisitionDuration :
127
130
issue :
128
131
code : VOLUME_TIMING_MISSING_ACQUISITION_DURATION
129
132
message : |
130
- The field 'VolumeTiming' requires 'AcquisitionDuration ' or 'SliceTiming' to be defined.
133
+ The field 'VolumeTiming' requires 'FrameAcquisitionDuration ' or 'SliceTiming' to be defined.
131
134
level : error
132
135
selectors :
133
- - type(nifti_header) != "null"
134
136
- intersects([suffix], ["asl", "bold"])
137
+ - match(extension, "^\.nii(\.gz)?$")
138
+ - type(sidecar.VolumeTiming) != "null"
139
+ - type(sidecar.RepetitionTime) == "null"
140
+ checks :
141
+ - |
142
+ "SliceTiming" in sidecar ||
143
+ "FrameAcquisitionDuration" in sidecar ||
144
+ "AcquisitionDuration" in sidecar
145
+
146
+ DeprecatedAcquisitionDuration :
147
+ issue :
148
+ code : DEPRECATED_ACQUISITION_DURATION
149
+ message : |
150
+ The 'AcquisitionDuration' field has been replaced with 'FrameAcquisitionDuration'
151
+ to indicate the duration of volume acquisition in sparse acquisition sequences.
152
+ level : warning
153
+ selectors :
154
+ - intersects([suffix], ["asl", "bold"])
155
+ - match(extension, "^\.nii(\.gz)?$")
135
156
- type(sidecar.VolumeTiming) != "null"
157
+ - type(sidecar.FrameAcquisitionDuration) == "null"
136
158
checks :
137
- - ' "SliceTiming" in sidecar || " AcquisitionDuration" in sidecar'
159
+ - ' !(" AcquisitionDuration" in sidecar) '
0 commit comments