From c19367b0aa9d102eb5bcb03392bcf347d827bf08 Mon Sep 17 00:00:00 2001 From: Taher Chegini Date: Mon, 1 Apr 2024 16:38:55 -0400 Subject: [PATCH] MNT: Use testing functionality of numpy for float comparison. [skip ci] --- tests/test_hydrosignatures.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_hydrosignatures.py b/tests/test_hydrosignatures.py index cde1074..fbff9cc 100644 --- a/tests/test_hydrosignatures.py +++ b/tests/test_hydrosignatures.py @@ -15,7 +15,7 @@ def assert_close(a: float, b: float) -> None: - assert np.isclose(a, b, rtol=1e-3).all() + np.testing.assert_allclose(a, b, rtol=1e-3) @pytest.fixture()