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

@ -3,26 +3,42 @@ namespace Adaptation.FileHandlers.json;
public class ProfilePoint
{
#nullable enable
public int Number { get; }
public double Depth { get; }
public double Raw { get; }
public double? Edited { get; }
public double ResistanceRaw { get; }
public double? ResistanceEdited { get; }
public double? Resistivity { get; }
public double? CD { get; }
public double? Concentration { get; }
public double? DeltaPercent { get; }
public ProfilePoint? LastProfilePoint { get; }
public Log10? Log10 { get; }
public ProfilePoint(int number,
double depth,
double raw,
double? edited,
double? resistivity,
double? cd)
double? cd,
ProfilePoint? lastProfilePoint)
{
Number = number;
Depth = depth;
Raw = raw;
Edited = edited;
ResistanceRaw = raw;
ResistanceEdited = edited;
Resistivity = resistivity;
CD = cd;
Concentration = cd;
DeltaPercent = lastProfilePoint is null ? null : (lastProfilePoint.ResistanceRaw - raw) / raw;
LastProfilePoint = lastProfilePoint;
Log10 = new
(
depth: depth,
raw: raw,
edited: edited,
resistivity: resistivity,
cd: cd
);
}
}