From ba31b4565878fd946b0664fc6e7f4ca4b3c37321 Mon Sep 17 00:00:00 2001 From: wtclarke Date: Mon, 21 Oct 2024 14:16:40 +0100 Subject: [PATCH] Pass specwidth validator str to match existing interface --- src/nifti_mrs/validator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nifti_mrs/validator.py b/src/nifti_mrs/validator.py index 91dadb1..dcbe3d2 100644 --- a/src/nifti_mrs/validator.py +++ b/src/nifti_mrs/validator.py @@ -40,7 +40,7 @@ def validate_nifti_mrs(nifti_mrs): # Validate that any SpectralWidth definition matches pixdim[4] validate_spectralwidth( - nifti_mrs.header.extensions[0].json(), + nifti_mrs.header.extensions[0].text, nifti_mrs.header['pixdim'][4])