This commit is contained in:
2023-05-16 13:12:43 -07:00
parent e084fdd58f
commit 6668806432
2 changed files with 4 additions and 4 deletions

View File

@ -19,9 +19,9 @@ public class Log10
{ {
Depth = Math.Log10(depth); Depth = Math.Log10(depth);
ResistanceRaw = Math.Log10(raw); ResistanceRaw = Math.Log10(raw);
ResistanceEdited = edited is null ? null : Math.Log10(edited.Value); ResistanceEdited = edited is null || edited.Value == 0 ? null : Math.Log10(edited.Value);
Resistivity = resistivity is null ? null : Math.Log10(resistivity.Value); Resistivity = resistivity is null || resistivity.Value == 0 ? null : Math.Log10(resistivity.Value);
Concentration = cd is null ? null : Math.Log10(cd.Value); Concentration = cd is null || cd.Value == 0 ? null : Math.Log10(cd.Value);
} }
} }

View File

@ -31,7 +31,7 @@ public class ProfilePoint
Concentration = cd; Concentration = cd;
DeltaPercent = lastProfilePoint is null ? null : (lastProfilePoint.ResistanceRaw - raw) / raw; DeltaPercent = lastProfilePoint is null ? null : (lastProfilePoint.ResistanceRaw - raw) / raw;
LastProfilePoint = lastProfilePoint; LastProfilePoint = lastProfilePoint;
Log10 = new Log10 = depth == 0 || raw == 0 ? null : new
( (
depth: depth, depth: depth,
raw: raw, raw: raw,