Skip to content

Commit 286cb17

Browse files
Fixed #868 Remove parallel=True in core._compute_multi_PI
* fix njit decorator * update numpy array in place
1 parent 8aae46d commit 286cb17

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

stumpy/core.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3956,7 +3956,6 @@ def _mdl(disc_subseqs, disc_neighbors, S, n_bit=8):
39563956

39573957
@njit(
39583958
# "(i8, i8, f8[:, :], f8[:], i8, f8[:, :], i8[:, :], f8)",
3959-
parallel=True,
39603959
fastmath={"nsz", "arcp", "contract", "afn", "reassoc"},
39613960
)
39623961
def _compute_multi_PI(d, idx, D, D_prime, range_start, P, I, p=2.0):
@@ -3999,7 +3998,7 @@ def _compute_multi_PI(d, idx, D, D_prime, range_start, P, I, p=2.0):
39993998
"""
40003999
D_prime[:] = 0.0
40014000
for i in range(d):
4002-
D_prime = D_prime + np.power(D[i], 1.0 / p)
4001+
D_prime[:] = D_prime + np.power(D[i], 1.0 / p)
40034002

40044003
min_index = np.argmin(D_prime)
40054004
pos = idx - range_start

0 commit comments

Comments
 (0)