Skip to content

Commit

Permalink
fix(schema): Move VolumeTiming check into checks
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Jul 30, 2024
1 parent d38ffc7 commit 881739b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
11 changes: 11 additions & 0 deletions src/schema/rules/checks/func.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -127,3 +127,14 @@ SliceTimingAcquisitionDurationMutex:
checks:
- type(sidecar.AcquisitionDuration) == "null"
- type(sidecar.DelayTime) == "null"

VolumeTimingMissingAcquisitionDuration:
issue:
code: VOLUME_TIMING_MISSING_ACQUISITION_DURATION
message: |
The field 'VolumeTiming' requires 'AcquisitionDuration' or 'SliceTiming' to be defined.
level: error
selectors:
- type(sidecar.VolumeTiming) != "null"
checks:
- '"SliceTiming" in sidecar || "AcquisitionDuration" in sidecar'
4 changes: 0 additions & 4 deletions src/schema/rules/sidecars/func.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,6 @@ MRIFuncTimingParameters:
required for sequences that are described with the `VolumeTiming`
field and that do not have the `SliceTiming` field set to allow for
accurate calculation of "acquisition time"
issue:
code: VOLUME_TIMING_MISSING_ACQUISITION_DURATION
message: |
The field 'VolumeTiming' requires 'AcquisitionDuration' or 'SliceTiming' to be defined.
DelayAfterTrigger: recommended

# fMRI task information
Expand Down

0 comments on commit 881739b

Please sign in to comment.