Skip to content

Commit

Permalink
PEtab_test: save results to file
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasneubrand committed May 13, 2024
1 parent db496fb commit 1a320e6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions arFramework3/Examples/ToyModels/PEtab_Tests/TestFeature.m
Original file line number Diff line number Diff line change
Expand Up @@ -119,16 +119,18 @@

Working = double(SimuCheck.*Chi2Check.*LLHCheck);

if ~silent
resultsTable = table(cases,Working,SimuCheck,Chi2Check,LLHCheck,SimuDiff,Chi2Diff,LLHDiff,chi2,llh,Error,ErrorFile,ErrorLine)
end
writetable(resultsTable, 'PEtab_Test_Results.csv')

if sum(Working) == numel(Working)
fprintf( 2, 'PASSED\n' );
else
fprintf( 2, 'Errors in test case(s) %s\n', strjoin(cases(logical(~Working)),', '));
error( 'FAILED');
end

if ~silent
Table = table(cases,Working,SimuCheck,Chi2Check,LLHCheck,SimuDiff,Chi2Diff,LLHDiff,chi2,llh,Error,ErrorFile,ErrorLine)
end

function solution = ReadOutSolutionFile(caseName)

Expand Down

0 comments on commit 1a320e6

Please sign in to comment.