Skip to content

Commit 8dd70b6

Browse files
kabilareffigies
authored andcommitted
Add checks for metadata fields
1 parent 2cac558 commit 8dd70b6

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

src/schema/rules/checks/mri.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,3 +145,31 @@ RepetitionTimePreparationNotConsistent:
145145
- type(nifti_header) != "null"
146146
checks:
147147
- length(sidecar.RepetitionTimePreparation) == nifti_header.dim[4]
148+
149+
BigDeltaNotConsistent:
150+
issue:
151+
code: BIGDELTA_NOT_CONSISTENT
152+
message: |
153+
The number of values for 'BigDelta' for this file does
154+
not match the 4th dimension of the NIfTI header.
155+
level: error
156+
selectors:
157+
- modality == "mri"
158+
- type(sidecar.BigDelta) == "array"
159+
- type(nifti_header) != "null"
160+
checks:
161+
- length(sidecar.BigDelta) == nifti_header.dim[4]
162+
163+
SmallDeltaNotConsistent:
164+
issue:
165+
code: SMALLDELTA_NOT_CONSISTENT
166+
message: |
167+
The number of values for 'SmallDelta' for this file does
168+
not match the 4th dimension of the NIfTI header.
169+
level: error
170+
selectors:
171+
- modality == "mri"
172+
- type(sidecar.SmallDelta) == "array"
173+
- type(nifti_header) != "null"
174+
checks:
175+
- length(sidecar.SmallDelta) == nifti_header.dim[4]

0 commit comments

Comments
 (0)