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

Function test_mstumped_include

tests/test_mstumped.py:55–67  ·  view source on GitHub ↗
(T, m, dask_cluster)

Source from the content-addressed store, hash-verified

53@pytest.mark.filterwarnings("ignore:\\s+Port 8787 is already in use:UserWarning")
54@pytest.mark.parametrize("T, m", test_data)
55def test_mstumped_include(T, m, dask_cluster):
56 with Client(dask_cluster) as dask_client:
57 for width in range(T.shape[0]):
58 for i in range(T.shape[0] - width):
59 include = np.asarray(range(i, i + width + 1))
60
61 excl_zone = int(np.ceil(m / 4))
62
63 ref_P, ref_I = naive.mstump(T, m, excl_zone, include)
64 comp_P, comp_I = mstumped(dask_client, T, m, include)
65
66 npt.assert_almost_equal(ref_P, comp_P)
67 npt.assert_almost_equal(ref_I, comp_I)
68
69
70@pytest.mark.filterwarnings("ignore:\\s+Port 8787 is already in use:UserWarning")

Callers

nothing calls this directly

Calls 1

mstumpedFunction · 0.90

Tested by

no test coverage detected