diff --git a/src/ert/config/gen_kw_config.py b/src/ert/config/gen_kw_config.py index 1eef206de10..fbc0340170d 100644 --- a/src/ert/config/gen_kw_config.py +++ b/src/ert/config/gen_kw_config.py @@ -332,8 +332,7 @@ def trans_normal(x: float, arg: List[float]) -> float: def trans_truncated_normal(x: float, arg: List[float]) -> float: _mean, _std, _min, _max = arg[0], arg[1], arg[2], arg[3] y = x * _std + _mean - max(min(y, _max), _min) # clamp - return y + return max(min(y, _max), _min) # clamp @staticmethod def trans_lognormal(x: float, arg: List[float]) -> float: