From 454e8838e2906f244ef5371cd4fb3d015635bde0 Mon Sep 17 00:00:00 2001 From: Aron Mirwald Date: Thu, 18 Jan 2024 11:01:24 +0100 Subject: [PATCH] output type of estimate_b adjusted --- seismostats/analysis/estimate_beta.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/seismostats/analysis/estimate_beta.py b/seismostats/analysis/estimate_beta.py index 675eab4c..c883a2e4 100644 --- a/seismostats/analysis/estimate_beta.py +++ b/seismostats/analysis/estimate_beta.py @@ -16,7 +16,7 @@ def estimate_b( return_std: bool = False, method="tinti", return_n: bool = False, -) -> float | tuple[float, float]: +) -> float | tuple[float, float] | tuple[float, float, float]: """returns the maximum likelihood beta or b-value. Method depends on the input parameter 'method'. @@ -238,7 +238,7 @@ def estimate_b_positive( b_parameter: str = "b_value", return_std: bool = False, return_n: bool = False, -) -> float | tuple[float, float]: +) -> float | tuple[float, float] | tuple[float, float, float]: """returns the b-value estimation using the positive differences of the Magnitudes