From d758a0e767427c8b47aaf061c641ddc04759a5c9 Mon Sep 17 00:00:00 2001 From: nimasarajpoor Date: Tue, 1 Aug 2023 01:49:15 -0400 Subject: [PATCH 1/3] empty commit From bc18f88201d68a71625b61b2c4ca3a7414ce456c Mon Sep 17 00:00:00 2001 From: nimasarajpoor Date: Tue, 1 Aug 2023 01:57:31 -0400 Subject: [PATCH 2/3] fix flake8 format --- stumpy/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stumpy/core.py b/stumpy/core.py index 41e5dff28..57d05f989 100644 --- a/stumpy/core.py +++ b/stumpy/core.py @@ -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 From 4819a490deb11e66f9df0728abc35812e2d6c422 Mon Sep 17 00:00:00 2001 From: nimasarajpoor Date: Tue, 1 Aug 2023 01:59:49 -0400 Subject: [PATCH 3/3] fix minor typo --- stumpy/motifs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stumpy/motifs.py b/stumpy/motifs.py index b1e3077f9..790bc83a9 100644 --- a/stumpy/motifs.py +++ b/stumpy/motifs.py @@ -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