Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(checks): Enforce timing mutual exclusions on BOLD/ASL data only #1969

Merged
merged 1 commit into from
Oct 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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'