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

Function test_mstumped_ray

tests/test_ray.py:93–103  ·  view source on GitHub ↗
(T, m, ray_cluster)

Source from the content-addressed store, hash-verified

91@pytest.mark.filterwarnings("ignore:\\s+Port 8787 is already in use:UserWarning")
92@pytest.mark.parametrize("T, m", test_mdata)
93def test_mstumped_ray(T, m, ray_cluster):
94 if not RAY_IMPORTED: # pragma: no cover
95 pytest.skip("Skipping Test Ray Not Installed")
96
97 excl_zone = int(np.ceil(m / 4))
98
99 ref_P, ref_I = naive.mstump(T, m, excl_zone)
100 comp_P, comp_I = mstumped(ray, T, m)
101
102 npt.assert_almost_equal(ref_P, comp_P)
103 npt.assert_almost_equal(ref_I, comp_I)
104
105
106@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