Skip to content

Commit

Permalink
Print count of failed values
Browse files Browse the repository at this point in the history
  • Loading branch information
beutlich committed Apr 9, 2024
1 parent ebcba7e commit 4151ddb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Modelica_ResultCompare/CsvFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,8 @@ public Report CompareFiles(Log log, CsvFile csvBase, string sReportPath, ref Opt
{
Chart pairMax = rep.Chart.Aggregate((l, r) => l.DeltaError > r.DeltaError ? l : r);
writer.WriteLine(". Biggest error: {0}=>{1}", pairMax.Title, pairMax.DeltaError.ToString(CultureInfo.InvariantCulture));
writer.WriteLine(". Failed values:");
int iErrors = (from c in rep.Chart where c.Errors > 0 && c.Errors != -1 select c).Count();
writer.WriteLine(". Failed values: {0}", iErrors);

foreach (Chart c in (from r in rep.Chart where r.DeltaError > 0 select r).OrderByDescending(er => er.DeltaError))
writer.WriteLine("{0}=>{1}", c.Title, c.DeltaError.ToString(CultureInfo.InvariantCulture));
Expand Down

0 comments on commit 4151ddb

Please sign in to comment.