Skip to content

Commit

Permalink
SCHEMA: Add check for consistency between MRS header and sidecar
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed May 21, 2024
1 parent a69e144 commit f6cd503
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/schema/rules/checks/mrs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
MRSNiftiConsistency:
issue:
code: MRS_NIFTI_CONSISTENCY
message: |
ResonantNucleus and/or SpectrometerFrequency fields are inconsistent
between the NIfTI-MRS header extension and the BIDS sidecar.
level: error
selectors:
- datatype == "mrs"
- nifti_header.mrs
checks:
- sidecar.ResonantNucleus == nifti_header.mrs.ResonantNucleus
- sidecar.SpectrometerFrequency == nifti_header.mrs.SpectrometerFrequency

0 comments on commit f6cd503

Please sign in to comment.