Skip to content

Commit

Permalink
[SCHEMA] electrodes.tsv is RECOMMENDED if EEGChannelCount > 0
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Jul 14, 2023
1 parent e425baf commit 2facc67
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/schema/rules/checks/meg.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Rules for MEG data that cannot be defined in tables
---
MEGElectrodesRecommended:
issue:
code: MEG_EEG_ELECTRODES_RECOMMENDED
message: |
A nonzero EEGChannelCount for MEG datasets indicates the presence of EEG
channels. A corresponding `electrodes.tsv` file should be be added.
level: warning
selectors:
- suffix == "meg"
- sidecar.EEGChannelCount > 0
checks:
- type(associations.electrodes) != 'null'

0 comments on commit 2facc67

Please sign in to comment.