Skip to content

Commit

Permalink
[SCHEMA] Invert logic of bold onset hints (#1300)
Browse files Browse the repository at this point in the history
We only want to generate these messages when the check returns false.
  • Loading branch information
rwblair authored Sep 24, 2022
1 parent 66538fe commit a98ea74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/schema/rules/checks/hints.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ SuspiciouslyLongBOLDDesign:
- suffix == "bold"
- associations.events != null
checks:
- max(associations.events.onset) > nifti_header.pixdim[4] * nifti_header.dim[4]
- max(associations.events.onset) < nifti_header.pixdim[4] * nifti_header.dim[4]

SuspiciouslyShortBOLDDesign:
issue:
Expand All @@ -23,4 +23,4 @@ SuspiciouslyShortBOLDDesign:
- suffix == "bold"
- associations.events != null
checks:
- max(associations.events.onset) < nifti_header.pixdim[4] * nifti_header.dim[4] / 2
- max(associations.events.onset) > nifti_header.pixdim[4] * nifti_header.dim[4] / 2

0 comments on commit a98ea74

Please sign in to comment.