Skip to content

Commit

Permalink
fix(checks): Enforce timing mutual exclusions on BOLD/ASL data only (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies authored Oct 24, 2024
1 parent e2a1ecc commit 6e2874c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/schema/rules/checks/func.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ VolumeTimingRepetitionTimeMutex:
or 'VolumeTiming' when variable times are used.
level: error
selectors:
- type(nifti_header) != "null"
- intersects([suffix], ["asl", "bold"])
- type(sidecar.VolumeTiming) != "null"
checks:
- type(sidecar.RepetitionTime) == "null"
Expand All @@ -101,6 +103,8 @@ RepetitionTimeAcquisitionDurationMutex:
(RepetitionTime - AcquisitionDuration).
level: error
selectors:
- type(nifti_header) != "null"
- intersects([suffix], ["asl", "bold"])
- type(sidecar.AcquisitionDuration) != "null"
checks:
- type(sidecar.RepetitionTime) == "null"
Expand All @@ -113,6 +117,8 @@ VolumeTimingDelayTimeMutex:
To specify acquisition duration, use 'AcquisitionDuration' or 'SliceTiming'.
level: error
selectors:
- type(nifti_header) != "null"
- intersects([suffix], ["asl", "bold"])
- type(sidecar.VolumeTiming) != "null"
checks:
- type(sidecar.DelayTime) == "null"
Expand All @@ -124,6 +130,8 @@ VolumeTimingMissingAcquisitionDuration:
The field 'VolumeTiming' requires 'AcquisitionDuration' or 'SliceTiming' to be defined.
level: error
selectors:
- type(nifti_header) != "null"
- intersects([suffix], ["asl", "bold"])
- type(sidecar.VolumeTiming) != "null"
checks:
- '"SliceTiming" in sidecar || "AcquisitionDuration" in sidecar'

0 comments on commit 6e2874c

Please sign in to comment.