Skip to content

Commit 742e48d

Browse files
Chore: pre-commit autoupdate
1 parent 8504cc2 commit 742e48d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/osc_physrisk_financial/random_variables.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -857,10 +857,12 @@ def compute_occurrence_probability_vectorized(drvs, lambda_value, x):
857857
858858
"""
859859
compute_occurrence = np.vectorize(
860-
lambda drv, lambda_value, x: 1
861-
- np.exp(
862-
-lambda_value
863-
* (1 - np.sum(drv.probabilities[np.where(drv.values <= x)[0]]))
860+
lambda drv, lambda_value, x: (
861+
1
862+
- np.exp(
863+
-lambda_value
864+
* (1 - np.sum(drv.probabilities[np.where(drv.values <= x)[0]]))
865+
)
864866
)
865867
)
866868
return compute_occurrence(drvs, lambda_value, x)

0 commit comments

Comments
 (0)