Skip to content

Commit

Permalink
[SCHEMA] add non behavioral datatype assertion for warning about miss…
Browse files Browse the repository at this point in the history
…ing events.tsv (#1887)

* add non behavioral datatype assertion for warning about missing events.tsv

* should not apply to behaviorally suffixed files either.

* Update src/schema/rules/checks/events.yaml

Co-authored-by: Chris Markiewicz <effigies@gmail.com>

---------

Co-authored-by: Chris Markiewicz <effigies@gmail.com>
  • Loading branch information
rwblair and effigies authored Aug 12, 2024
1 parent 817454b commit 0e506f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/schema/rules/checks/events.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ EventsMissing:
level: warning # could be an error with the proper selectors, I think
selectors:
- dataset.dataset_description.DatasetType == "raw"
- datatype != "beh"
- '"task" in entities'
- '!match(entities.task, "rest")'
- suffix != "events"
- '!intersects([suffix], ["events", "beh"])'
- extension != ".json"
checks:
- '"events" in associations'
Expand Down

0 comments on commit 0e506f0

Please sign in to comment.