v2.49.2 36 Tests Passed

nuget server name
Added Last and Log10 to json
Simplified by adding loop variables
Simplified by only drawling using FillEllipse
Added GetImageBytes back to prove-in ChartJs
This commit is contained in:
2023-05-31 10:14:16 -07:00
parent 6f49fa2cee
commit faa4bd4d86
21 changed files with 646 additions and 78 deletions

View File

@ -5,6 +5,8 @@ namespace Adaptation.FileHandlers.json;
public class ProfileHeader
{
#nullable enable
public int NumberOfProfiles { get; }
public List<Profile> Profiles { get; }
public List<ProfilePoint> ProfilePoints { get; }
@ -14,6 +16,8 @@ public class ProfileHeader
Profile profile;
ProfilePoint profilePoint;
List<Profile> profiles = new();
csv.ProfilePoint csvProfilePoint;
ProfilePoint? lastProfilePoint = null;
List<ProfilePoint> profilePoints = new();
NumberOfProfiles = int.Parse(profileHeader.NumberOfProfiles);
Profiles = profiles;
@ -31,8 +35,9 @@ public class ProfileHeader
);
profiles.Add(profile);
}
foreach (csv.ProfilePoint csvProfilePoint in profileHeader.ProfilePoints)
for (int i = 0; i < profileHeader.ProfilePoints.Count; i++)
{
csvProfilePoint = profileHeader.ProfilePoints[i];
profilePoint = new
(
number: int.Parse(csvProfilePoint.Number),
@ -40,9 +45,11 @@ public class ProfileHeader
raw: double.Parse(csvProfilePoint.Raw),
edited: double.Parse(csvProfilePoint.Edited),
resistivity: double.Parse(csvProfilePoint.Resistivity),
cd: double.Parse(csvProfilePoint.CD)
cd: double.Parse(csvProfilePoint.CD),
lastProfilePoint: lastProfilePoint
);
profilePoints.Add(profilePoint);
lastProfilePoint = profilePoint;
}
}