diff --git a/src/schema/rules/checks/channels.yaml b/src/schema/rules/checks/channels.yaml index 20313860f3..9fc11edce0 100644 --- a/src/schema/rules/checks/channels.yaml +++ b/src/schema/rules/checks/channels.yaml @@ -3,27 +3,32 @@ ElectrodeSpecificity: issue: code: EXCESSIVE_ELECTRODE_SPECIFICITY message: | - Run or acquisition entities detected in electrodes.tsv. + Task, acquisition or run entities detected in electrodes.tsv. Electrode definitions should generally not vary within a session. - Consider creating a new session each time electrodes are reconfigured. + Consider removing the excess entity/entities or create a new + session each time electrodes are reconfigured. level: warning selectors: - suffix == 'electrodes' - extension == '.tsv' checks: - - '!("run" in entities)' + - '!("task" in entities)' - '!("acquisition" in entities)' + - '!("run" in entities)' CoordsystemSpecificity: issue: code: EXCESSIVE_COORDSYSTEM_SPECIFICITY message: | - Task entities detected in coordsystem.tsv. - Coordinate systems should generally not vary by task. - Consider removing the excess entity. + Task, acquisition or run entities detected in coordsystem.tsv. + Coordinate systems should generally not vary within a session. + Consider removing the excess entity/entities or create new + sessions when multiple coordinate systems are appropriate. level: warning selectors: - suffix == 'coordsystem' - extension == '.json' checks: - '!("task" in entities)' + - '!("acquisition" in entities)' + - '!("run" in entities)' diff --git a/src/schema/rules/files/raw/channels.yaml b/src/schema/rules/files/raw/channels.yaml index 14dc1bfb6a..6a4358c689 100644 --- a/src/schema/rules/files/raw/channels.yaml +++ b/src/schema/rules/files/raw/channels.yaml @@ -70,6 +70,7 @@ electrodes: entities: subject: required session: optional + task: optional acquisition: optional run: optional space: optional