MCPcopy Index your code
hub / github.com/stumpy-dev/stumpy / test_mmotifs

Function test_mmotifs

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

Source from the content-addressed store, hash-verified

377
378@pytest.mark.parametrize("T, m", test_data)
379def test_mmotifs(T, m):
380 mps, indices = maamp(T, m)
381 ref_distances, ref_indices, ref_subspaces, ref_mdls = aamp_mmotifs(T, mps, indices)
382 cmp_distances, cmp_indices, cmp_subspaces, cmp_mdls = mmotifs(
383 T, mps, indices, normalize=False
384 )
385 npt.assert_almost_equal(ref_distances, cmp_distances)
386
387
388@pytest.mark.filterwarnings("ignore:All-NaN slice encountered")

Callers

nothing calls this directly

Calls 3

maampFunction · 0.90
aamp_mmotifsFunction · 0.90
mmotifsFunction · 0.90

Tested by

no test coverage detected