()
| 24 | |
| 25 | |
| 26 | def test_multi_mass_absolute_seeded(): |
| 27 | np.random.seed(5) |
| 28 | T = np.random.uniform(-1000, 1000, [3, 10]).astype(np.float64) |
| 29 | m = 5 |
| 30 | |
| 31 | trivial_idx = 2 |
| 32 | |
| 33 | Q = T[:, trivial_idx : trivial_idx + m] |
| 34 | |
| 35 | ref = naive.multi_mass_absolute(Q, T, m) |
| 36 | |
| 37 | T, T_subseq_isfinite = core.preprocess_non_normalized(T, m) |
| 38 | comp = _multi_mass_absolute( |
| 39 | Q, T, m, T_subseq_isfinite[:, trivial_idx], T_subseq_isfinite |
| 40 | ) |
| 41 | |
| 42 | npt.assert_almost_equal(ref, comp, decimal=config.STUMPY_TEST_PRECISION) |
| 43 | |
| 44 | |
| 45 | @pytest.mark.parametrize("T, m", test_data) |
nothing calls this directly
no test coverage detected