(T, m)
| 73 | |
| 74 | @pytest.mark.parametrize("T, m", test_data) |
| 75 | def test_get_first_maamp_profile(T, m): |
| 76 | excl_zone = int(np.ceil(m / 4)) |
| 77 | start = 0 |
| 78 | |
| 79 | for p in [1.0, 2.0, 3.0]: |
| 80 | ref_P, ref_I = naive.maamp(T, m, excl_zone, p=p) |
| 81 | ref_P = ref_P[:, start] |
| 82 | ref_I = ref_I[:, start] |
| 83 | |
| 84 | _T, T_subseq_isfinite = core.preprocess_non_normalized(T, m) |
| 85 | comp_P, comp_I = _get_first_maamp_profile( |
| 86 | start, _T, _T, m, excl_zone, T_subseq_isfinite, p=p |
| 87 | ) |
| 88 | |
| 89 | npt.assert_almost_equal(ref_P, comp_P) |
| 90 | npt.assert_equal(ref_I, comp_I) |
| 91 | |
| 92 | |
| 93 | @pytest.mark.parametrize("T, m", test_data) |
nothing calls this directly
no test coverage detected