Skip to content

Commit 6137212

Browse files
committed
[VCF] Some improvements in pot and extr_corr_utils
1 parent 287be23 commit 6137212

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bluemath_tk/distributions/pot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ def fit(
318318
_, _, _, self.pks, self.pks_idx, _ = pot(
319319
self.data, self.threshold, self.n0, self.min_peak_distance
320320
)
321-
return self.threshold, self.pks, self.pks_idx
321+
return self.threshold.item(), self.pks, self.pks_idx
322322

323323
def studentized_residuals(
324324
self,

bluemath_tk/distributions/utils/extr_corr_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def gpdpoiss_ci_rp_bootstrap(
3030
boot_params = np.zeros((B, 3))
3131
for i in range(B):
3232
fit_result = GPD.fit(boot_samples[i], threshold=threshold)
33-
boot_params[i, :] = fit_result.params
33+
boot_params[i, :] = np.asarray(fit_result.params)
3434

3535
return_periods = np.array(
3636
[

0 commit comments

Comments
 (0)