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

Function test_match

tests/test_motifs.py:402–421  ·  view source on GitHub ↗
(Q, T)

Source from the content-addressed store, hash-verified

400
401@pytest.mark.parametrize("Q, T", test_data)
402def test_match(Q, T):
403 m = Q.shape[0]
404 excl_zone = int(np.ceil(m / 4))
405 max_distance = 0.3
406
407 left = naive_match(
408 Q,
409 T,
410 excl_zone,
411 max_distance=max_distance,
412 )
413
414 right = match(
415 Q,
416 T,
417 max_matches=None,
418 max_distance=lambda D: max_distance, # also test lambda functionality
419 )
420
421 npt.assert_almost_equal(left, right)
422
423
424@pytest.mark.parametrize("Q, T", test_data)

Callers

nothing calls this directly

Calls 2

matchFunction · 0.90
naive_matchFunction · 0.85

Tested by

no test coverage detected