Skip to content

Commit b09dfe8

Browse files
Merge branch 'TDAmeritrade:main' into fix_snippet
2 parents 169412b + 6c367ac commit b09dfe8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

stumpy/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2678,7 +2678,7 @@ def _get_partial_mp_func(mp_func, client=None, device_id=None):
26782678
partial_mp_func = functools.partial(mp_func, client)
26792679
elif device_id is not None:
26802680
partial_mp_func = functools.partial(mp_func, device_id=device_id)
2681-
elif type(mp_func) != functools.partial:
2681+
elif isinstance(mp_func, functools.partial):
26822682
partial_mp_func = functools.partial(mp_func)
26832683
else:
26842684
partial_mp_func = mp_func

stumpy/motifs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ def motifs(
208208
The (1-dimensional) matrix profile of `T`. In the case where the matrix
209209
profile was computed with `k > 1` (i.e., top-k nearest neighbors), you
210210
must summarize the top-k nearest-neighbor distances for each subsequence
211-
into a single value (e.g., `np.mean`, `np.min`, etc) and that use that
211+
into a single value (e.g., `np.mean`, `np.min`, etc) and then use that
212212
derived value as your `P`.
213213
214214
min_neighbors : int, default 1

0 commit comments

Comments
 (0)