From 1a320e6850569184dbb2f530a5e68989b0ada3af Mon Sep 17 00:00:00 2001 From: Niklas Neubrand <38315848+niklasneubrand@users.noreply.github.com> Date: Mon, 13 May 2024 12:12:58 +0200 Subject: [PATCH] PEtab_test: save results to file --- arFramework3/Examples/ToyModels/PEtab_Tests/TestFeature.m | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/arFramework3/Examples/ToyModels/PEtab_Tests/TestFeature.m b/arFramework3/Examples/ToyModels/PEtab_Tests/TestFeature.m index 47704ff9..0c79e12f 100644 --- a/arFramework3/Examples/ToyModels/PEtab_Tests/TestFeature.m +++ b/arFramework3/Examples/ToyModels/PEtab_Tests/TestFeature.m @@ -119,6 +119,11 @@ 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 @@ -126,9 +131,6 @@ 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)