Commit 6badc046 authored by Sam Harrison's avatar Sam Harrison
Browse files

Better error messages if PROFUMO/ICA-DR fail

Now print the full error message before continuing.
parent bf26b248
......@@ -397,8 +397,9 @@ for n = 1:params.nRepeats
%Ground truth linear model
%scores.GT.PA(n) = calculateBoldRecovery(PA, makePA(P,A,params), params);
% N.B. This is essentially deprecated now there is noise in the PA subspace
catch
catch err
warning('Ground-truth dual regression failed.');
disp(getReport(err));
end
end
......@@ -427,8 +428,9 @@ for n = 1:params.nRepeats
P, icadr_P, A, icadr_A, pcA, icadr_pcA, params);
scores.ICA_DRt(n) = calculateDecompositionAccuracy( ...
P, icadr_Pt, A, icadr_At, pcA, icadr_pcAt, params);
catch
catch err
warning('MELODIC run failed.');
disp(getReport(err));
end
%% Run PROFUMO %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
......@@ -454,8 +456,9 @@ for n = 1:params.nRepeats
%scores.PFM_DR(n) = calculateDecompositionAccuracy( ...
% P, pfmdr_P, A, pfmdr_A, pcA, pfmdr_pcA, params);
catch
catch err
warning('PROFUMO run failed.');
disp(getReport(err));
end
%% Save scores %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment