Index: Ringtoets/Piping/src/Ringtoets.Piping.IO/SoilProfiles/PipingSoilLayerTransformer.cs =================================================================== diff -u -rdaa6b36fc2506683c50ba4117790452ae4f45d7f -r09693d79085118c47709b7059ab7c1ef459ad2aa --- Ringtoets/Piping/src/Ringtoets.Piping.IO/SoilProfiles/PipingSoilLayerTransformer.cs (.../PipingSoilLayerTransformer.cs) (revision daa6b36fc2506683c50ba4117790452ae4f45d7f) +++ Ringtoets/Piping/src/Ringtoets.Piping.IO/SoilProfiles/PipingSoilLayerTransformer.cs (.../PipingSoilLayerTransformer.cs) (revision 09693d79085118c47709b7059ab7c1ef459ad2aa) @@ -34,10 +34,10 @@ /// /// Transforms generic into . /// - public static class PipingSoilLayerTransformer + internal static class PipingSoilLayerTransformer { /// - /// Transforms the generic into a mechanism specific + /// Transforms the generic into a piping specific /// soil profile of type . /// /// The soil layer to use in the transformation. @@ -157,7 +157,8 @@ private static void ValidateIsNonShiftedLogNormal(long? distribution, double shift, string incorrectDistibutionParameter) { - if (distribution.HasValue && (distribution != SoilLayerConstants.LogNormalDistributionValue || shift != 0.0)) + if (distribution.HasValue && (distribution.Value != SoilLayerConstants.LogNormalDistributionValue + || Math.Abs(shift) > 1e-6)) { throw new ImportedDataTransformException(string.Format( Resources.SoilLayer_Stochastic_parameter_0_has_no_lognormal_distribution,