MCPcopy Create free account
hub / github.com/stumpy-dev/stumpy / test_mstumped_include_discords

Function test_mstumped_include_discords

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

Source from the content-addressed store, hash-verified

83@pytest.mark.filterwarnings("ignore:\\s+Port 8787 is already in use:UserWarning")
84@pytest.mark.parametrize("T, m", test_data)
85def test_mstumped_include_discords(T, m, dask_cluster):
86 with Client(dask_cluster) as dask_client:
87 for width in range(T.shape[0]):
88 for i in range(T.shape[0] - width):
89 include = np.asarray(range(i, i + width + 1))
90
91 excl_zone = int(np.ceil(m / 4))
92
93 ref_P, ref_I = naive.mstump(T, m, excl_zone, include, discords=True)
94 comp_P, comp_I = mstumped(dask_client, T, m, include, discords=True)
95
96 npt.assert_almost_equal(ref_P, comp_P)
97 npt.assert_almost_equal(ref_I, comp_I)
98
99
100@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