Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion stumpy/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -2678,7 +2678,7 @@ def _get_partial_mp_func(mp_func, client=None, device_id=None):
partial_mp_func = functools.partial(mp_func, client)
elif device_id is not None:
partial_mp_func = functools.partial(mp_func, device_id=device_id)
elif type(mp_func) != functools.partial:
elif isinstance(mp_func, functools.partial):
partial_mp_func = functools.partial(mp_func)
else:
partial_mp_func = mp_func
Expand Down
2 changes: 1 addition & 1 deletion stumpy/motifs.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def motifs(
The (1-dimensional) matrix profile of `T`. In the case where the matrix
profile was computed with `k > 1` (i.e., top-k nearest neighbors), you
must summarize the top-k nearest-neighbor distances for each subsequence
into a single value (e.g., `np.mean`, `np.min`, etc) and that use that
into a single value (e.g., `np.mean`, `np.min`, etc) and then use that
derived value as your `P`.

min_neighbors : int, default 1
Expand Down