From c6bed8c94f0debf0343dabba9c591ab1908ed089 Mon Sep 17 00:00:00 2001 From: Chris Markiewicz Date: Tue, 20 Aug 2024 11:17:39 -0400 Subject: [PATCH] fix(schema): Add tolerance to REPETITION_TIME_MISMATCH rule --- src/schema/rules/checks/func.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/schema/rules/checks/func.yaml b/src/schema/rules/checks/func.yaml index a908bfa345..aff192b5fd 100644 --- a/src/schema/rules/checks/func.yaml +++ b/src/schema/rules/checks/func.yaml @@ -40,7 +40,9 @@ RepetitionTimeMismatch: - type(sidecar.RepetitionTime) != "null" - type(nifti_header) != "null" checks: - - sidecar.RepetitionTime == nifti_header.pixdim[4] + # Implement millisecond rounding via AND + - sidecar.RepetitionTime - nifti_header.pixdim[4] < 0.001 + - sidecar.RepetitionTime - nifti_header.pixdim[4] > -0.001 # 54 BoldNot4d: