(Q, T)
| 400 | |
| 401 | @pytest.mark.parametrize("Q, T", test_data) |
| 402 | def test_match(Q, T): |
| 403 | m = Q.shape[0] |
| 404 | excl_zone = int(np.ceil(m / 4)) |
| 405 | max_distance = 0.3 |
| 406 | |
| 407 | left = naive_match( |
| 408 | Q, |
| 409 | T, |
| 410 | excl_zone, |
| 411 | max_distance=max_distance, |
| 412 | ) |
| 413 | |
| 414 | right = match( |
| 415 | Q, |
| 416 | T, |
| 417 | max_matches=None, |
| 418 | max_distance=lambda D: max_distance, # also test lambda functionality |
| 419 | ) |
| 420 | |
| 421 | npt.assert_almost_equal(left, right) |
| 422 | |
| 423 | |
| 424 | @pytest.mark.parametrize("Q, T", test_data) |
nothing calls this directly
no test coverage detected