Skip to content

Commit c6bed8c

Browse files
committed
fix(schema): Add tolerance to REPETITION_TIME_MISMATCH rule
1 parent 1f18f9a commit c6bed8c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/schema/rules/checks/func.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ RepetitionTimeMismatch:
4040
- type(sidecar.RepetitionTime) != "null"
4141
- type(nifti_header) != "null"
4242
checks:
43-
- sidecar.RepetitionTime == nifti_header.pixdim[4]
43+
# Implement millisecond rounding via AND
44+
- sidecar.RepetitionTime - nifti_header.pixdim[4] < 0.001
45+
- sidecar.RepetitionTime - nifti_header.pixdim[4] > -0.001
4446

4547
# 54
4648
BoldNot4d:

0 commit comments

Comments
 (0)