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