Skip to content

Commit 724cf85

Browse files
committed
Minor test
1 parent 3b2c738 commit 724cf85

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

stumpy/scrump.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -95,19 +95,19 @@ def _compute_PI(
9595
"""
9696
l = T_B.shape[0] - m + 1
9797
squared_distance_profile = np.empty(l)
98+
QT = np.empty(l, dtype=np.float64)
9899
for i in indices[start:stop]:
99100
Q = T_A[i : i + m]
100-
# QT = core._sliding_dot_product(Q, T_B)
101-
QT = np.empty(l, dtype=np.float64)
101+
# QT[:] = core._sliding_dot_product(Q, T_B)
102102
for j in range(l):
103103
QT[j] = np.dot(Q, T_B[j : j + m])
104104
# Update P[i] relative to all T[j : j + m]
105105
squared_distance_profile[:] = core._mass(Q, T_B, QT, μ_Q[i], σ_Q[i], M_T, Σ_T)
106-
squared_distance_profile[:] = np.square(squared_distance_profile)
107-
if excl_zone is not None:
108-
zone_start = max(0, i - excl_zone)
109-
zone_stop = min(l, i + excl_zone)
110-
squared_distance_profile[zone_start : zone_stop + 1] = np.inf
106+
# squared_distance_profile[:] = np.square(squared_distance_profile)
107+
# if excl_zone is not None:
108+
# zone_start = max(0, i - excl_zone)
109+
# zone_stop = min(l, i + excl_zone)
110+
# squared_distance_profile[zone_start : zone_stop + 1] = np.inf
111111
# I[thread_idx, i] = np.argmin(squared_distance_profile)
112112
# P_squared[thread_idx, i] = squared_distance_profile[I[thread_idx, i]]
113113
# if P_squared[thread_idx, i] == np.inf: # pragma: no cover

0 commit comments

Comments
 (0)