CSV like PDSF ready to test

This commit is contained in:
2025-01-13 12:46:35 -07:00
parent 865357bbc8
commit bc6810cf4f
15 changed files with 379 additions and 231 deletions

View File

@ -51,27 +51,27 @@ public class Header
{
bool usedLast;
const string twoSpaces = " ";
string title = Complete.GetBefore(text, i, "Recipe:");
string recipeAndDateTime = Complete.GetToEOL(text, i);
string title = Run.GetBefore(text, i, "Recipe:");
string recipeAndDateTime = Run.GetToEOL(text, i);
string recipe = recipeAndDateTime.Length < twoSpaces.Length ? recipeAndDateTime.Trim() : !recipeAndDateTime.Contains(twoSpaces) ? recipeAndDateTime.Substring(0, 25).Trim() : recipeAndDateTime.Split(new string[] { twoSpaces }, StringSplitOptions.None)[0].Trim();
string dateTime = recipeAndDateTime.Substring(recipe.Length).Trim();
if (dateTime.EndsWith("."))
dateTime = dateTime.Remove(dateTime.Length - 1, 1);
i[0] = Complete.ScanPast(text, i, "operator:");
string @operator = Complete.GetBefore(text, i, "batch:");
string batch = Complete.GetToEOL(text, i);
i[0] = Complete.ScanPast(text, i, "cassette:");
i[0] = Run.ScanPast(text, i, "operator:");
string @operator = Run.GetBefore(text, i, "batch:");
string batch = Run.GetToEOL(text, i);
i[0] = Run.ScanPast(text, i, "cassette:");
if (!text.Contains("cassette:"))
title = string.Empty;
string cassette = Complete.GetBefore(text, i, "wafer:");
string cassette = Run.GetBefore(text, i, "wafer:");
if (string.IsNullOrEmpty(batch))
{
i[0] = 0;
i[0] = Complete.ScanPast(text, i, "wafer:");
i[0] = Run.ScanPast(text, i, "wafer:");
}
string wafer = Complete.GetToEOL(text, i);
_ = Complete.GetToEOL(text, i);
_ = Complete.GetToEOL(text, i);
string wafer = Run.GetToEOL(text, i);
_ = Run.GetToEOL(text, i);
_ = Run.GetToEOL(text, i);
if (string.IsNullOrEmpty(wafer))
throw new Exception("Wafer field is missing.");
if (!string.IsNullOrEmpty(title))