Skip to content

Commit

Permalink
Avoid crash of arSimuData
Browse files Browse the repository at this point in the history
arSimu throws warning instead of error for arCalcRes
  • Loading branch information
niklasneubrand committed Jul 1, 2024
1 parent 4275344 commit e5171fc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion arFramework3/Advanced/arSimuData.m
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ function arSimuData(m, jplot, tpoints, randomseed)


% simulate model
arSimu(false, false, true, false);
arSimu(false, false, true);
ar.pTrue = ar.p;

% simulate data
Expand Down
6 changes: 5 additions & 1 deletion arFramework3/arSimu.m
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,11 @@
if(~fine)
% arCalcRes_test; % the test can be performed here or outside of arSimu
% (see comments in arCalcRes_test.m)
arCalcRes(sensi)
try
arCalcRes(sensi)
catch ME
warning(getReport(ME, 'extended', 'hyperlinks', 'on'));
end

%calculate y_scale_max
if(ar.config.atolV)
Expand Down

0 comments on commit e5171fc

Please sign in to comment.