Skip to content

Commit

Permalink
fix(schema): Add tolerance to REPETITION_TIME_MISMATCH rule
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Aug 20, 2024
1 parent 1f18f9a commit c6bed8c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/schema/rules/checks/func.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit c6bed8c

Please sign in to comment.