Skip to content

Commit

Permalink
Fix float test with equals.
Browse files Browse the repository at this point in the history
  • Loading branch information
vnmabus committed Jun 13, 2023
1 parent 814fb8c commit b7e0023
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions skfda/tests/test_registration.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,14 +109,14 @@ def test_normalize_warping(self) -> None:
# Test new domain range (0, 1)
np.testing.assert_array_equal(normalized.domain_range, [domain])

np.testing.assert_array_almost_equal(
np.testing.assert_allclose(
normalized.grid_points[0],
np.linspace(*domain, 50),
)

np.testing.assert_array_equal(normalized(a)[..., 0], [[a], [a]])
np.testing.assert_allclose(normalized(a)[..., 0], [[a], [a]])

np.testing.assert_array_equal(normalized(b)[..., 0], [[b], [b]])
np.testing.assert_allclose(normalized(b)[..., 0], [[b], [b]])

def test_landmark_shift_deltas(self) -> None:
"""Test landmark shift deltas."""
Expand Down

0 comments on commit b7e0023

Please sign in to comment.