Skip to content

Commit 571b70a

Browse files
committed
Minor edits to pattern matching tutorial
1 parent 2c00773 commit 571b70a

File tree

2 files changed

+53
-299
lines changed

2 files changed

+53
-299
lines changed

docs/Tutorial_Pattern_Matching.ipynb

Lines changed: 50 additions & 299 deletions
Large diffs are not rendered by default.

stumpy/motifs.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,9 @@ def match(
318318
to `Q` are smaller than `max_distance`, sorted by distance (lowest to highest).
319319
The second column consists of the corresponding indices in `T`.
320320
"""
321+
Q = np.asarray(Q)
322+
T = np.asarray(T)
323+
321324
if len(Q.shape) == 1:
322325
Q = Q[np.newaxis, :]
323326
if len(T.shape) == 1:

0 commit comments

Comments
 (0)