Skip to content

Commit 6e2874c

Browse files
authored
fix(checks): Enforce timing mutual exclusions on BOLD/ASL data only (#1969)
1 parent e2a1ecc commit 6e2874c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/schema/rules/checks/func.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ VolumeTimingRepetitionTimeMutex:
8888
or 'VolumeTiming' when variable times are used.
8989
level: error
9090
selectors:
91+
- type(nifti_header) != "null"
92+
- intersects([suffix], ["asl", "bold"])
9193
- type(sidecar.VolumeTiming) != "null"
9294
checks:
9395
- type(sidecar.RepetitionTime) == "null"
@@ -101,6 +103,8 @@ RepetitionTimeAcquisitionDurationMutex:
101103
(RepetitionTime - AcquisitionDuration).
102104
level: error
103105
selectors:
106+
- type(nifti_header) != "null"
107+
- intersects([suffix], ["asl", "bold"])
104108
- type(sidecar.AcquisitionDuration) != "null"
105109
checks:
106110
- type(sidecar.RepetitionTime) == "null"
@@ -113,6 +117,8 @@ VolumeTimingDelayTimeMutex:
113117
To specify acquisition duration, use 'AcquisitionDuration' or 'SliceTiming'.
114118
level: error
115119
selectors:
120+
- type(nifti_header) != "null"
121+
- intersects([suffix], ["asl", "bold"])
116122
- type(sidecar.VolumeTiming) != "null"
117123
checks:
118124
- type(sidecar.DelayTime) == "null"
@@ -124,6 +130,8 @@ VolumeTimingMissingAcquisitionDuration:
124130
The field 'VolumeTiming' requires 'AcquisitionDuration' or 'SliceTiming' to be defined.
125131
level: error
126132
selectors:
133+
- type(nifti_header) != "null"
134+
- intersects([suffix], ["asl", "bold"])
127135
- type(sidecar.VolumeTiming) != "null"
128136
checks:
129137
- '"SliceTiming" in sidecar || "AcquisitionDuration" in sidecar'

0 commit comments

Comments
 (0)