Skip to content

Commit 2ca32b2

Browse files
Add onset/duration metadata fields and remove incorrect custom field
Added essential BIDS metadata definitions for event JSON sidecars: - onset: Event onset time in seconds - duration: Event duration in seconds These were needed because annotation JSON sidecars contain these fields and the validator requires metadata definitions for all JSON fields. Removed incorrectly added shot_number field which is a custom annotation column specific to examples, not a general BIDS field. Tests: Basic stimuli validation now works with proper schema definitions
1 parent 237c466 commit 2ca32b2

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

src/schema/objects/metadata.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4218,3 +4218,20 @@ type:
42184218
Type of stimulus file (for example, image, audio, video, audiovideo).
42194219
Refers to the suffix of the stimulus file when present in stimulus metadata.
42204220
type: string
4221+
duration:
4222+
name: duration
4223+
display_name: Duration
4224+
description: |
4225+
Duration of the event (measured from onset) in seconds.
4226+
Must always be either zero or positive (or `n/a` if unavailable).
4227+
type: number
4228+
unit: s
4229+
minimum: 0
4230+
onset:
4231+
name: onset
4232+
display_name: Onset
4233+
description: |
4234+
Onset (in seconds) of the event, measured from the beginning of the acquisition
4235+
of the first data point stored in the corresponding task data file.
4236+
type: number
4237+
unit: s

0 commit comments

Comments
 (0)