Skip to content

Commit

Permalink
Update filter.
Browse files Browse the repository at this point in the history
Replacing all non-positive `a` values, instead of only replacing 0
values.
  • Loading branch information
ioannis-vm committed Nov 21, 2024
1 parent c01c2d9 commit 1d75300
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pelicun/uq.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = (
Expand Down

0 comments on commit 1d75300

Please sign in to comment.