run.json descriptions.json Infineon.Mesa.PDF.Text.Stripper 4.8.0.2 WaferMean NestExistingFiles only for TriggerOnCreated txt now writes .a and .b csv file Stratus doesn't work the .csv file MSTEST0037
45 lines
1.3 KiB
C#
45 lines
1.3 KiB
C#
using System.Collections.ObjectModel;
|
|
|
|
namespace Adaptation.FileHandlers.Stratus;
|
|
|
|
#nullable enable
|
|
|
|
public class Grade
|
|
{
|
|
|
|
public Grade(string meanThickness, string stdDev)
|
|
{
|
|
Mean = meanThickness;
|
|
StdDev = stdDev;
|
|
}
|
|
|
|
public string Mean { get; }
|
|
public string StdDev { get; }
|
|
|
|
internal static Grade? Get(Constant constant, ReadOnlyCollection<string> groups)
|
|
{
|
|
Grade? result;
|
|
int[] j = new int[] { 0 };
|
|
string stdDev = string.Empty;
|
|
string meanThickness = string.Empty;
|
|
foreach (string groupText in groups)
|
|
{
|
|
if (groupText.Contains(constant.Destination))
|
|
continue;
|
|
stdDev = string.Empty;
|
|
meanThickness = string.Empty;
|
|
Header.ScanPast(groupText, j, constant.Mean);
|
|
meanThickness = Wafer.GetToken(groupText, j);
|
|
if (meanThickness.EndsWith(","))
|
|
meanThickness = meanThickness.Remove(meanThickness.Length - 1, 1);
|
|
Header.ScanPast(groupText, j, constant.STDD);
|
|
stdDev = Wafer.GetToken(groupText, j);
|
|
if (stdDev.EndsWith(","))
|
|
stdDev = stdDev.Remove(stdDev.Length - 1, 1);
|
|
}
|
|
result = new(meanThickness: meanThickness,
|
|
stdDev: stdDev);
|
|
return result;
|
|
}
|
|
|
|
} |