From 3e893cdce0633af40e8a163af0e468ce3fac12a4 Mon Sep 17 00:00:00 2001 From: Dennis Bader Date: Mon, 2 Sep 2024 08:53:48 +0200 Subject: [PATCH] attempt to fix failing test due to randomness (#2518) --- darts/tests/test_timeseries_static_covariates.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/darts/tests/test_timeseries_static_covariates.py b/darts/tests/test_timeseries_static_covariates.py index 53445b5f55..895ef5b686 100644 --- a/darts/tests/test_timeseries_static_covariates.py +++ b/darts/tests/test_timeseries_static_covariates.py @@ -107,7 +107,7 @@ def test_ts_from_x(self, tmpdir_module): def test_from_group_dataframe(self): # checks that the time_index is of RangeIndex type when the time_col is a(n) (unsorted) list and/or a Rangeindex group = ["a", "a", "a", "b", "b", "b"] - values = np.random.randn(len(group)) + values = np.arange(len(group)) # for time as a unsorted list time = [2, 1, 0, 0, 1, 2]