Skip to content

Commit 87fbd57

Browse files
Fixes #982 Reduce Github Workflow RunTime (#1004)
* empty commit * Reduce computational load of coverage test of ostinato gpu functions
1 parent e7bb2b8 commit 87fbd57

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/test_gpu_aamp_ostinato.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,13 @@ def test_input_not_overwritten():
8080
def test_extract_several_consensus():
8181
# This test is to further ensure that the function `gpu_aamp_ostinato`
8282
# does not tamper with the original data.
83-
Ts = [np.random.rand(n) for n in [256, 512, 1024]]
83+
Ts = [np.random.rand(n) for n in [64, 128]]
8484
Ts_ref = [T.copy() for T in Ts]
8585
Ts_comp = [T.copy() for T in Ts]
8686

8787
m = 20
8888

89-
k = 5 # Get the first `k` consensus motifs
89+
k = 2 # Get the first `k` consensus motifs
9090
for _ in range(k):
9191
# Find consensus motif and its NN in each time series in Ts_comp
9292
# Remove them from Ts_comp as well as Ts_ref, and assert that the

tests/test_gpu_ostinato.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,13 +141,13 @@ def test_input_not_overwritten():
141141
def test_extract_several_consensus():
142142
# This test is to further ensure that the function `gpu_ostinato`
143143
# does not tamper with the original data.
144-
Ts = [np.random.rand(n) for n in [256, 512, 1024]]
144+
Ts = [np.random.rand(n) for n in [64, 128]]
145145
Ts_ref = [T.copy() for T in Ts]
146146
Ts_comp = [T.copy() for T in Ts]
147147

148148
m = 20
149149

150-
k = 5 # Get the first `k` consensus motifs
150+
k = 2 # Get the first `k` consensus motifs
151151
for _ in range(k):
152152
# Find consensus motif and its NN in each time series in Ts_comp
153153
# Remove them from Ts_comp as well as Ts_ref, and assert that the

0 commit comments

Comments
 (0)