Skip to content

Commit 33c8013

Browse files
committed
data can have same length as pattern
1 parent e9e30e3 commit 33c8013

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tsfresh/feature_extraction/motifs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def _match_scores(data, pattern):
9393
:return: the array of distance of pattern to each sliding window
9494
:rtype: numpy.ndarray
9595
"""
96-
assert len(data) > len(pattern)
96+
assert len(data) >= len(pattern)
9797

9898
res = [_distance(x, pattern) for x in _array_of_sliding_windows(data, len(pattern))]
9999
return np.array(res)

0 commit comments

Comments
 (0)