Skip to content

Commit

Permalink
Better layout, added support for zooming in on math parameters.
Browse files Browse the repository at this point in the history
  • Loading branch information
LegacyNsfw committed Sep 8, 2024
1 parent 152f1e7 commit 24eb1c2
Show file tree
Hide file tree
Showing 4 changed files with 118 additions and 102 deletions.
4 changes: 4 additions & 0 deletions Apps/PcmLibrary/Logging/MathValueProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ public IEnumerable<string> GetMathValues(PcmParameterValues dpidValues)
finalConverter.SetVariable("x", xParameterValue);
finalConverter.SetVariable("y", yParameterValue);
double converted = finalConverter.Eval<double>(value.MathColumn.Conversion.Expression);
if (double.IsNaN(converted))
{
converted = 0;
}
result.Add(converted.ToString(value.MathColumn.Conversion.Format));
}
catch (Exception exception)
Expand Down
Loading

0 comments on commit 24eb1c2

Please sign in to comment.