Skip to content

Commit

Permalink
SCHEMA: Add check to warn against excessive electrode specificity
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Mar 11, 2024
1 parent c41872c commit e7154a3
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/schema/rules/checks/electrodes.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
ElectrodeSpecificity:
issue:
code: EXCESSIVE_ELECTRODE_SPECIFICITY
message: |
Run or acquisition entities detected in electrodes.tsv.
Electrode definitions should generally not vary within a session.
Consider creating a new session each time electrodes are reconfigured.
level: warning
selectors:
- suffix == 'electrodes'
- extension == '.tsv'
checks:
- '!("run" in entities)'
- '!("acquisition" in entities)'

0 comments on commit e7154a3

Please sign in to comment.