Skip to content

Commit 6b01ad7

Browse files
add n_sig_digits
1 parent 93016aa commit 6b01ad7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

climada/hazard/base.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -491,6 +491,7 @@ def local_exceedance_intensity(
491491
min_intensity=None,
492492
log_frequency=True,
493493
log_intensity=True,
494+
n_sig_dig=2,
494495
):
495496
"""Compute local exceedance intensity for given return periods. The default method
496497
is fitting the ordered intensitites per centroid to the corresponding cummulated
@@ -573,6 +574,7 @@ def local_exceedance_intensity(
573574
value_threshold=min_intensity,
574575
method=method,
575576
y_asymptotic=0.0,
577+
n_sig_dig=n_sig_dig,
576578
)
577579
for i_centroid in nonzero_centroids
578580
]
@@ -620,6 +622,7 @@ def local_return_period(
620622
min_intensity=None,
621623
log_frequency=True,
622624
log_intensity=True,
625+
n_sig_dig=2,
623626
):
624627
"""Compute local return periods for given hazard intensities. The default method
625628
is fitting the ordered intensitites per centroid to the corresponding cummulated
@@ -693,6 +696,7 @@ def local_return_period(
693696
value_threshold=min_intensity,
694697
method=method,
695698
y_asymptotic=np.nan,
699+
n_sig_dig=n_sig_dig,
696700
)
697701
for i_centroid in range(self.intensity.shape[1])
698702
]

0 commit comments

Comments
 (0)