From 2244181832f5ffe9a67dc241732726421130fde5 Mon Sep 17 00:00:00 2001 From: CPernet Date: Tue, 5 Dec 2023 20:06:54 +0100 Subject: [PATCH] conditional on recon parameter values --- matlab/updatejsonpetfile.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/matlab/updatejsonpetfile.m b/matlab/updatejsonpetfile.m index 9de6b8cf..e7bdc759 100644 --- a/matlab/updatejsonpetfile.m +++ b/matlab/updatejsonpetfile.m @@ -360,7 +360,9 @@ else % returns none if actually seen as empty by get_recon_method filemetadata.ReconMethodParameterLabels = "none"; filemetadata.ReconMethodParameterUnits = "none"; - filemetadata.ReconMethodParameterValues = 0; % conditional on ReconMethodParameterLabels, just to make the validator pass comment this out later + if isempty(filemetadata.ReconMethodParameterValues) % in cas user passes info + filemetadata.ReconMethodParameterValues = 0; % if none should be 0 + end end end