bids-specification icon indicating copy to clipboard operation
bids-specification copied to clipboard

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

Open Remi-Gau opened this issue 4 years ago • 2 comments

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 avatar Oct 27 '21 12:10 Remi-Gau

still an issue with the deno validator

Remi-Gau avatar Aug 05 '24 17:08 Remi-Gau

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)'

effigies avatar Aug 05 '24 17:08 effigies