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

Function test_maamped_discords

tests/test_maamped.py:70–78  ·  view source on GitHub ↗
(T, m, dask_cluster)

Source from the content-addressed store, hash-verified

68@pytest.mark.filterwarnings("ignore:\\s+Port 8787 is already in use:UserWarning")
69@pytest.mark.parametrize("T, m", test_data)
70def test_maamped_discords(T, m, dask_cluster):
71 with Client(dask_cluster) as dask_client:
72 excl_zone = int(np.ceil(m / 4))
73
74 ref_P, ref_I = naive.maamp(T, m, excl_zone, discords=True)
75 comp_P, comp_I = maamped(dask_client, T, m, discords=True)
76
77 npt.assert_almost_equal(ref_P, comp_P)
78 npt.assert_almost_equal(ref_I, comp_I)
79
80
81@pytest.mark.filterwarnings("ignore:\\s+Port 8787 is already in use:UserWarning")

Callers

nothing calls this directly

Calls 1

maampedFunction · 0.90

Tested by

no test coverage detected