Skip to content

Commit b9fe806

Browse files
Copilothombit
andcommitted
Use fixed random seed in gen_lc instead of relaxing tolerance
Co-authored-by: hombit <1784493+hombit@users.noreply.github.com>
1 parent f1c3c8e commit b9fe806

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

light-curve/tests/light_curve_ext/test_feature.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -426,12 +426,12 @@ def test_bazin_fit_precise(algo):
426426
@pytest.mark.parametrize("feature", gen_feature_evaluators(parametric_variants=5, rng=0))
427427
def test_json_serialization(feature):
428428
n_obs = 128
429-
data = gen_lc(n_obs)
429+
data = gen_lc(n_obs, rng=0)
430430
values = feature(*data)
431431

432432
from_to_json = lc.feature_from_json(feature.to_json())
433433
values_from_to_json = from_to_json(*data)
434-
assert_allclose(values, values_from_to_json, rtol=1e-6)
434+
assert_allclose(values, values_from_to_json)
435435

436436

437437
def test_json_deserialization():

0 commit comments

Comments
 (0)