Skip to content

Commit 6514870

Browse files
committed
fix: Deprecate AcquisitionDuration usage for BOLD volume timing
1 parent 309b61a commit 6514870

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

src/schema/rules/checks/func.yaml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,4 +134,22 @@ VolumeTimingMissingFrameAcquisitionDuration:
134134
- intersects([suffix], ["asl", "bold"])
135135
- type(sidecar.VolumeTiming) != "null"
136136
checks:
137-
- '"SliceTiming" in sidecar || "FrameAcquisitionDuration" in sidecar'
137+
- |
138+
"SliceTiming" in sidecar ||
139+
"FrameAcquisitionDuration" in sidecar ||
140+
"AcquisitionDuration" in sidecar
141+
142+
DeprecatedAcquisitionDuration:
143+
issue:
144+
code: DEPRECATED_ACQUISITION_DURATION
145+
message: |
146+
The 'AcquisitionDuration' field has been replaced with 'FrameAcquisitionDuration'
147+
to indicate the duration of volume acquisition in sparse acquisition sequences.
148+
level: warning
149+
selectors:
150+
- type(nifti_header) != "null"
151+
- intersects([suffix], ["asl", "bold"])
152+
- type(sidecar.VolumeTiming) != "null"
153+
- type(sidecar.FrameAcquisitionDuration) == "null"
154+
checks:
155+
- '!("AcquisitionDuration" in sidecar)'

src/schema/rules/sidecars/func.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@ MRIFuncTimingParameters:
6363
field and that do not have the `SliceTiming` field set to allow for
6464
accurate calculation of "acquisition time"
6565
DelayAfterTrigger: recommended
66+
AcquisitionDuration:
67+
level: deprecated
68+
description_addendum: |
69+
This field was previously used to indicate volume acquisition duration
70+
for BOLD data. The `FrameAcquisitionDuration` field should be used instead.
6671
6772
# fMRI task information
6873
MRIFuncTaskInformation:

0 commit comments

Comments
 (0)