MCPcopy
hub / github.com/stumpy-dev/stumpy / test_motifs

Function test_motifs

tests/test_non_normalized_decorator.py:355–363  ·  view source on GitHub ↗
(T, m)

Source from the content-addressed store, hash-verified

353
354@pytest.mark.parametrize("T, m", test_data)
355def test_motifs(T, m):
356 if T.ndim > 1:
357 T = T.copy()
358 T = T[0]
359
360 mp = aamp(T, m)
361 ref = aamp_motifs(T, mp[:, 0])
362 comp = motifs(T, mp[:, 0], normalize=False)
363 npt.assert_almost_equal(ref, comp)
364
365
366@pytest.mark.parametrize("T, m", test_data)

Callers

nothing calls this directly

Calls 3

aampFunction · 0.90
aamp_motifsFunction · 0.90
motifsFunction · 0.90

Tested by

no test coverage detected