Skip to content

Commit f28ed60

Browse files
committed
Minor change
1 parent 2d799e8 commit f28ed60

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

tests/test_aamp_motifs.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,10 @@ def test_aamp_motifs_two_motifs():
7373
# fails, which is caused since one of the motifs is not repeated perfectly in T.
7474
pytest.fix_rng_state()
7575

76-
# The time series is random noise with two motifs for m=10:
76+
# The time series is random noise with two motifs for m=20:
7777
# * (almost) identical step functions at indices 10, 110 and 210
7878
# * identical linear slopes at indices 70 and 170
79-
T = pytest.RNG.normal(size=300)
79+
T = pytest.RNG.random(size=300)
8080
m = 20
8181

8282
T[10:30] = 1
@@ -90,14 +90,14 @@ def test_aamp_motifs_two_motifs():
9090
T[210:230] = 1
9191
T[212:228] = 2
9292
T[220] = 1.9
93-
# naive.distance(naive.z_norm(T[10:30]), naive.z_norm(T[110:130])) = 0.47
94-
# naive.distance(naive.z_norm(T[10:30]), naive.z_norm(T[210:230])) = 0.24
95-
# naive.distance(naive.z_norm(T[110:130]), naive.z_norm(T[210:230])) = 0.72
93+
# naive.distance(T[10:30], T[110:130]) == 16.65
94+
# naive.distance(T[10:30], T[210:230]) == 0.1
95+
# naive.distance(T[110:130], T[210:230]) == 16.68
9696
# Hence T[10:30] is the motif representative for this motif
9797

9898
T[70:90] = np.arange(m) * 0.1
9999
T[170:190] = np.arange(m) * 0.1
100-
# naive.distance(naive.z_norm(T[70:90]), naive.z_norm(T[170:190])) = 0.0
100+
# naive.distance(T[70:90], T[170:190]) = 0.0
101101

102102
max_motifs = 2
103103

tests/test_aamp_ostinato.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,7 @@ def test_random_ostinatoed(dask_cluster):
6767
npt.assert_almost_equal(ref_subseq_idx, comp_subseq_idx)
6868

6969

70-
@pytest.mark.parametrize("seed", [41, 88, 290, 292, 310, 328, 538, 556, 563, 570])
71-
def test_deterministic_ostinatoed(seed, dask_cluster):
70+
def test_deterministic_ostinatoed(dask_cluster):
7271
pytest.fix_rng_state()
7372

7473
with Client(dask_cluster) as dask_client:

0 commit comments

Comments
 (0)