Refactor FileRead and ProcessData classes; update recipe handling in FromIQS and Job classes
- Changed the site constant in FileRead to "els" and updated the monInURL accordingly. - Modified FromIQS to include 'TBI01' in the SQL query for job names. - Updated Job class to include 'TBI01' in the mapping for MET08DDUPSP1TBI. - Made GetDefault method in Description static and added GetDefaultJsonElement method. - Refactored GetExtractResult in FileRead to improve clarity and efficiency, including changes to how logistics and JSON elements are handled. - Removed unused fields and methods in ProcessData, simplifying the class structure. - Added a method to add print files in Run class to streamline file handling. - Updated AdaptationTesting to prevent directory creation for paths containing "10.". - Improved string comparison in recipes-and-patterns.js for case-insensitive matching.
This commit is contained in:
@ -90,6 +90,14 @@ internal class Run
|
||||
File.WriteAllText($"{logistics.ReportFullPath}.csv", string.Join(Environment.NewLine, lines));
|
||||
}
|
||||
|
||||
private static void AddPrintFiles(Logistics logistics, List<FileInfo> fileInfoCollection)
|
||||
{
|
||||
string sourceDirectory = Path.GetDirectoryName(logistics.ReportFullPath) ?? throw new Exception();
|
||||
string[] files = Directory.GetFiles(sourceDirectory, "WaferMap*.prn", SearchOption.TopDirectoryOnly);
|
||||
foreach (string file in files)
|
||||
fileInfoCollection.Add(new FileInfo(file));
|
||||
}
|
||||
|
||||
internal static Run? Get(Logistics logistics, List<FileInfo> fileInfoCollection)
|
||||
{
|
||||
Run? result;
|
||||
@ -111,13 +119,13 @@ internal class Run
|
||||
else
|
||||
{
|
||||
result = new(header, summary, wafers);
|
||||
AddPrintFiles(logistics, fileInfoCollection);
|
||||
WriteJson(logistics, fileInfoCollection, result);
|
||||
WriteCommaSeparatedValues(logistics, result);
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[JsonSourceGenerationOptions(WriteIndented = true)]
|
||||
|
||||
Reference in New Issue
Block a user