diff --git a/pelicun/uq.py b/pelicun/uq.py index 26cc2b38..a6674ed4 100644 --- a/pelicun/uq.py +++ b/pelicun/uq.py @@ -1793,7 +1793,7 @@ def inverse_transform(self, values: np.ndarray) -> np.ndarray: # Replace NaN values a = np.nan_to_num(a, nan=np.nextafter(0, 1)) - a[a == 0] = np.nextafter(0, 1) + a[a < 0] = np.nextafter(0, 1) b = np.nan_to_num(b, nan=np.inf) p_a, p_b = (