ProcessDataStandardFormat
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
This commit is contained in:
		
							
								
								
									
										45
									
								
								Adaptation/FileHandlers/Stratus/Grade.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										45
									
								
								Adaptation/FileHandlers/Stratus/Grade.cs
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,45 @@ | ||||
| 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; | ||||
|     } | ||||
|  | ||||
| } | ||||
		Reference in New Issue
	
	Block a user