Skip to content

Commit 91f767e

Browse files
committed
Revised test function using expected signature
1 parent e63860c commit 91f767e

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

tests/test_core.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -197,13 +197,10 @@ def test_check_window_size_excl_zone_case1():
197197
# with non-trivial neighbor
198198
T = np.random.rand(64)
199199
m = 60
200-
last_start_index = len(T) - m
201-
202-
excl_zone = int(np.ceil(m / config.STUMPY_EXCL_ZONE_DENOM))
203200

204201
with pytest.warns(UserWarning):
205202
core.check_window_size(
206-
m, max_size=len(T), excl_zone=excl_zone, last_start_index=last_start_index
203+
m, max_size=len(T), n=len(T)
207204
)
208205

209206

@@ -212,13 +209,10 @@ def test_check_window_size_excl_zone_case2():
212209
# that has no non-trivial neighbor
213210
T = np.random.rand(64)
214211
m = 48
215-
last_start_index = len(T) - m
216-
217-
excl_zone = int(np.ceil(m / config.STUMPY_EXCL_ZONE_DENOM))
218212

219213
with pytest.warns(UserWarning):
220214
core.check_window_size(
221-
m, max_size=len(T), excl_zone=excl_zone, last_start_index=last_start_index
215+
m, max_size=len(T), n=len(T)
222216
)
223217

224218

0 commit comments

Comments
 (0)