Enhance PCL and PDSF file handlers with new constants and refactor methods for improved readability and functionality
This commit is contained in:
@ -114,7 +114,7 @@ public class Wafer
|
||||
public string Thruput { get; }
|
||||
public string Recipe { get; }
|
||||
|
||||
internal static ReadOnlyDictionary<string, ReadOnlyCollection<Wafer>> Get(ReadOnlyDictionary<string, string> pages, Constant constant, string headerFileName)
|
||||
internal static ReadOnlyDictionary<string, ReadOnlyCollection<Wafer>> Get(ReadOnlyDictionary<string, string> pages, Constant constant)
|
||||
{
|
||||
Dictionary<string, ReadOnlyCollection<Wafer>> results = new();
|
||||
Wafer wafer;
|
||||
@ -124,15 +124,11 @@ public class Wafer
|
||||
Dictionary<string, List<Wafer>> keyValuePairs = new();
|
||||
foreach (KeyValuePair<string, string> keyValuePair in pages)
|
||||
{
|
||||
if (keyValuePair.Key == headerFileName)
|
||||
continue;
|
||||
if (!pages.ContainsKey(keyValuePair.Key))
|
||||
throw new Exception();
|
||||
i[0] = 0;
|
||||
stringList = new();
|
||||
if (!pages.TryGetValue(keyValuePair.Key, out text))
|
||||
throw new Exception();
|
||||
if (string.IsNullOrEmpty(text) || !text.Contains(constant.Id))
|
||||
if (string.IsNullOrEmpty(text) || !text.Contains(constant.Id) || text.Contains(constant.Statistics) || text.Contains(constant.DatabaseId))
|
||||
continue;
|
||||
Header.ScanPast(text, i, constant.Date);
|
||||
string date = Header.GetToEOL(text, i);
|
||||
|
||||
Reference in New Issue
Block a user