From 697401f70bf5886b8ce867e84a67251013801dd1 Mon Sep 17 00:00:00 2001 From: Helge <47348963+HJZollner@users.noreply.github.com> Date: Fri, 12 Apr 2024 09:06:55 -0400 Subject: [PATCH] [BUG FIX] - Crash osp_fitInitialise - Removed cell array reference that resulted in crash --- fit/code/osp_fitInitialise.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fit/code/osp_fitInitialise.m b/fit/code/osp_fitInitialise.m index 356a41cc..5c55eab8 100644 --- a/fit/code/osp_fitInitialise.m +++ b/fit/code/osp_fitInitialise.m @@ -53,7 +53,7 @@ % Find the right basis set (provided as *.mat file in Osprey basis set % format) -if ~(isfield(MRSCont.opts.fit,'basisSetFile') && ~isempty(MRSCont.opts.fit.basisSetFile) && ~isfolder(MRSCont.opts.fit.basisSetFile{1})) +if ~(isfield(MRSCont.opts.fit,'basisSetFile') && ~isempty(MRSCont.opts.fit.basisSetFile) && ~isfolder(MRSCont.opts.fit.basisSetFile)) % Intercept non-integer echo times and replace the decimal point with % an underscore to avoid file extension problems