From 83c6f3ea10a0a87a4baf7c98a5e4e953135e35f5 Mon Sep 17 00:00:00 2001 From: Chris Markiewicz Date: Thu, 30 May 2024 14:29:17 -0400 Subject: [PATCH] fix(checks): Use non-trivial expressions for selectors --- src/schema/rules/checks/mrs.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/schema/rules/checks/mrs.yaml b/src/schema/rules/checks/mrs.yaml index 41417feb93..598a59c94f 100644 --- a/src/schema/rules/checks/mrs.yaml +++ b/src/schema/rules/checks/mrs.yaml @@ -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 @@ -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]