Skip to content

Commit 933b1b3

Browse files
committed
Account for n/a values in StimulusPresentation
1 parent bfc9d9f commit 933b1b3

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/schema/objects/metadata.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3592,7 +3592,7 @@ ScreenResolution:
35923592
(for example `[1920, 1200]` for a screen of 1920-width by 1080-height pixels),
35933593
if no screen use `n/a`.
35943594
`ScreenResolution` is REQUIRED when the experiment included simultaneous eye-tracking
3595-
recordings.
3595+
recordings with `SampleCoordinateSystem` matching `"gaze-on-screen"`.
35963596
anyOf:
35973597
- type: array
35983598
items:
@@ -3610,7 +3610,7 @@ ScreenSize:
36103610
(for example `[0.472, 0.295]` for a screen of 47.2-width by 29.5-height cm),
36113611
if no screen use `n/a`.
36123612
`ScreenSize` is REQUIRED when the experiment included simultaneous eye-tracking
3613-
recordings.
3613+
recordings with `SampleCoordinateSystem` matching `"gaze-on-screen"`.
36143614
anyOf:
36153615
- type: array
36163616
items:

src/schema/rules/checks/eyetrack.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ EyetrackingStimulusPresentation:
1212
- sidecar.PhysioType == 'eyetrack'
1313
- sidecar.SampleCoordinateSystem == 'gaze-on-screen'
1414
checks:
15-
- '"ScreenDistance" in associations.events.sidecar.StimulusPresentation'
15+
- associations.events.sidecar.StimulusPresentation.ScreenDistance != 'n/a'
1616
- '"ScreenOrigin" in associations.events.sidecar.StimulusPresentation'
17-
- '"ScreenResolution" in associations.events.sidecar.StimulusPresentation'
18-
- '"ScreenSize" in associations.events.sidecar.StimulusPresentation'
17+
- associations.events.sidecar.StimulusPresentation.ScreenResolution != 'n/a'
18+
- associations.events.sidecar.StimulusPresentation.ScreenSize != 'n/a'
1919

2020
OnsetSourceConsistency:
2121
issue:

0 commit comments

Comments
 (0)