Skip to content

Commit

Permalink
feat(schema): Add check for the filename column of scans.tsv
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Aug 3, 2024
1 parent 92b0bfa commit 1a4d8d2
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/schema/rules/checks/dataset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,15 @@ SingleSourceCitationFields:
- '!("HowToAcknowledge" in dataset.dataset_description)'
- '!("License" in dataset.dataset_description)'
- '!("ReferencesAndLinks" in dataset.dataset_description)'

ScansTSVScans:
issue:
code: SCANS_FILENAME_NOT_MATCH_DATASET
level: error
message: |
Filenames in scans.tsv file do not match what is present in the BIDS dataset.
selectors:
- suffix == 'scans'
- extension == '.tsv'
checks:
- exists(columns.filename, "file") == length(columns.filename)

0 comments on commit 1a4d8d2

Please sign in to comment.