log 0
This commit is contained in:
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
@ -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,
|
||||||
|
Reference in New Issue
Block a user