(T, m, dask_cluster)
| 83 | @pytest.mark.filterwarnings("ignore:\\s+Port 8787 is already in use:UserWarning") |
| 84 | @pytest.mark.parametrize("T, m", test_data) |
| 85 | def 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") |
nothing calls this directly
no test coverage detected