Skip to content

Commit

Permalink
style
Browse files Browse the repository at this point in the history
  • Loading branch information
aronsho committed Aug 28, 2024
1 parent 5baac60 commit 5ff241d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions seismostats/analysis/tests/test_estimate_beta.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
bin_to_precision)


@ pytest.mark.parametrize(
@pytest.mark.parametrize(
"method, return_std, return_n, b_parameter",
[
("classic", True, True, "beta"),
Expand Down Expand Up @@ -108,7 +108,7 @@ def magnitudes(b: float):
return mags


@ pytest.mark.parametrize(
@pytest.mark.parametrize(
"b, mags, mc, delta_m, precision, b_parameter",
[
(1, magnitudes(1), 0, 0.1, 0.002, "b_value"),
Expand All @@ -131,7 +131,7 @@ def test_estimate_b_classic(
assert abs(b - b_estimate) / b <= precision


@ pytest.mark.parametrize(
@pytest.mark.parametrize(
"b, mags, mc, delta_m, precision, b_parameter",
[
(1, magnitudes(1), 0, 0.01, 0.002, "b_value"),
Expand All @@ -153,7 +153,7 @@ def test_estimate_b_utsu(
assert abs(b - b_estimate) / b <= precision


@ pytest.mark.parametrize(
@pytest.mark.parametrize(
"b, mags, mc, delta_m, dmc, precision, b_parameter",
[
(1, magnitudes(1), 0, 0.1, 0.3, 0.008, "b_value"),
Expand All @@ -178,7 +178,7 @@ def test_estimate_b_positive(
assert abs(b - b_estimate) / b <= precision


@ pytest.mark.parametrize(
@pytest.mark.parametrize(
"b, mags, mc, delta_m, dmc, precision, b_parameter",
[
(1, magnitudes(1), 0, 0.1, 0.3, 0.04, "b_value"),
Expand Down Expand Up @@ -308,7 +308,7 @@ def _create_test_catalog_poisson(a_val_true: float, b_val_true: float):
return mags, dates


@ pytest.mark.parametrize("a_val_true,b_val_true,precision", [(7, 1, 0.01)])
@pytest.mark.parametrize("a_val_true,b_val_true,precision", [(7, 1, 0.01)])
def test_estimate_b_weichert(
a_val_true: float, b_val_true: float, precision: float
):
Expand Down Expand Up @@ -343,7 +343,7 @@ def test_estimate_b_weichert(
data = pickle.load(f)


@ pytest.mark.parametrize(
@pytest.mark.parametrize(
"magnitudes,b,b_parameter,std",
[data["values_test1"], data["values_test2"]],
)
Expand Down

0 comments on commit 5ff241d

Please sign in to comment.