Skip to content

Commit e1fb491

Browse files
committed
fix: Only check spatial pixdims for PET
1 parent ee98b1a commit e1fb491

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

src/schema/rules/checks/nifti.yaml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ NiftiUnit:
1717
issue:
1818
code: NIFTI_UNIT
1919
message: |
20-
NIfTI file's header field for unit information for x, y, z, and t dimensions is empty or too short.
20+
NIfTI file's header field for unit information for x, y, z, and t dimensions is underspecified.
2121
level: warning
2222
selectors:
2323
- type(nifti_header) != "null"
@@ -30,13 +30,26 @@ NiftiPixdim:
3030
issue:
3131
code: NIFTI_PIXDIM
3232
message: |
33-
NIfTI file's header field for pixel dimension information is empty or too short.
33+
NIfTI file indicates 0-sized voxels.
3434
level: warning
3535
selectors:
36+
- suffix != 'pet'
3637
- type(nifti_header) != "null"
3738
checks:
3839
- min(nifti_header.voxel_sizes) > 0
3940

41+
NiftiPixdimPET:
42+
issue:
43+
code: NIFTI_PIXDIM_PET
44+
message: |
45+
NIfTI file indicates 0-sized voxels along spatial axes.
46+
level: warning
47+
selectors:
48+
- suffix == 'pet'
49+
- type(nifti_header) != "null"
50+
checks:
51+
- min([nifti_header.pixdim[1], nifti_header.pixdim[2], nifti_header.pixdim[3]]) > 0
52+
4053
# 60
4154
XformCodes0:
4255
issue:

0 commit comments

Comments
 (0)