bids-standard / bids-validator

Validator for the Brain Imaging Data Structure
https://bids-standard.github.io/bids-validator/
MIT License
185 stars 111 forks source link

Throw warning if `*_beh.tsv` has `onset` and `duration` column #1377

Open Remi-Gau opened 3 years ago

Remi-Gau commented 3 years ago

A file with those columns should probably be an events.tsv in this case.

Issue raised in this PR https://github.com/bids-standard/bids-validator/pull/1367#issue-1029095653

Remi-Gau commented 2 months ago

still an issue with the deno validator

effigies commented 2 months ago

This would be an easy one to write in schema, if you want to make a PR to the spec:

rules.checks.hints.BehavioralOnsetAndDuration:
  issue:
    code: BEH_ONSET_DURATION
    message: Some message
    level: warning
  selectors:
    - suffix == 'beh'
    - extension == '.tsv'
  checks:
    - '!("onset" in columns)'
    - '!("duration" in columns)'