| 38 | @pytest.mark.filterwarnings("ignore:\\s+Port 8787 is already in use:UserWarning") |
| 39 | @pytest.mark.parametrize("T, m", test_data) |
| 40 | def test_maamped(T, m, dask_cluster): |
| 41 | with Client(dask_cluster) as dask_client: |
| 42 | excl_zone = int(np.ceil(m / 4)) |
| 43 | |
| 44 | ref_P, ref_I = naive.maamp(T, m, excl_zone) |
| 45 | comp_P, comp_I = maamped(dask_client, T, m) |
| 46 | |
| 47 | npt.assert_almost_equal(ref_P, comp_P) |
| 48 | npt.assert_almost_equal(ref_I, comp_I) |
| 49 | |
| 50 | |
| 51 | @pytest.mark.filterwarnings("ignore:\\s+Port 8787 is already in use:UserWarning") |