Skip to content

Commit

Permalink
fix(checks): Use non-trivial expressions for selectors
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed May 31, 2024
1 parent 0181150 commit 83c6f3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/schema/rules/checks/mrs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ MRSNiftiConsistency:
level: error
selectors:
- datatype == "mrs"
- nifti_header.mrs
- type(nifti_header.mrs) != "null"
checks:
- sidecar.ResonantNucleus == nifti_header.mrs.ResonantNucleus
- sidecar.SpectrometerFrequency == nifti_header.mrs.SpectrometerFrequency
Expand All @@ -21,7 +21,7 @@ MRSMatrixSize:
level: error
selectors:
- datatype == "mrs"
- nifti_header
- type(nifti_header) != "null"
- type(sidecar.MatrixSize) != "null"
checks:
- sidecar.MatrixSize[0] == nifti_header.dim[1]
Expand Down

0 comments on commit 83c6f3e

Please sign in to comment.