Skip to content

Commit

Permalink
MNT: Use testing functionality of numpy for float comparison. [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
Taher Chegini committed Apr 1, 2024
1 parent edce177 commit c3422d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_pygeohydro.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,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)


class TestNWIS:
Expand Down

0 comments on commit c3422d0

Please sign in to comment.