Skip to content

Commit 28d6675

Browse files
committed
Added no cover to zone_start/stop if conditions
1 parent f0e15ca commit 28d6675

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

stumpy/stomp.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,14 +112,14 @@ def stomp(T_A, m, T_B=None, ignore_trivial=True):
112112
# Get left and right matrix profiles for self-joins
113113
if ignore_trivial and i > 0:
114114
IL = np.argmin(D[:i])
115-
if zone_start <= IL < zone_stop:
115+
if zone_start <= IL < zone_stop: # pragma: no cover
116116
IL = -1
117117
else:
118118
IL = -1
119119

120120
if ignore_trivial and i + 1 < D.shape[0]:
121121
IR = i + 1 + np.argmin(D[i + 1 :])
122-
if zone_start <= IR < zone_stop:
122+
if zone_start <= IR < zone_stop: # pragma: no cover
123123
IR = -1
124124
else:
125125
IR = -1

stumpy/stump.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,14 +305,14 @@ def _stump(
305305
# Get left and right matrix profiles for self-joins
306306
if ignore_trivial and i > 0:
307307
IL = np.argmin(D[:i])
308-
if zone_start <= IL < zone_stop:
308+
if zone_start <= IL < zone_stop: # pragma: no cover
309309
IL = -1
310310
else:
311311
IL = -1
312312

313313
if ignore_trivial and i + 1 < D.shape[0]:
314314
IR = i + 1 + np.argmin(D[i + 1 :])
315-
if zone_start <= IR < zone_stop:
315+
if zone_start <= IR < zone_stop: # pragma: no cover
316316
IR = -1
317317
else:
318318
IR = -1

0 commit comments

Comments
 (0)