Skip to content

Commit

Permalink
Use allclose instead of almost_equal
Browse files Browse the repository at this point in the history
  • Loading branch information
szhan committed Sep 18, 2023
1 parent 8de7de7 commit 18c6e3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/tests/test_imputation.py
Original file line number Diff line number Diff line change
Expand Up @@ -694,10 +694,10 @@ def test_get_weights(genotyped_pos, ungenotyped_pos, expected_weights, expected_
actual_weights, actual_idx = tests.beagle.get_weights(
genotyped_pos, ungenotyped_pos
)
np.testing.assert_array_almost_equal(actual_weights, expected_weights)
np.testing.assert_allclose(actual_weights, expected_weights)
np.testing.assert_array_equal(actual_idx, expected_idx)
actual_weights, actual_idx = tests.beagle_numba.get_weights(
genotyped_pos, ungenotyped_pos
)
np.testing.assert_array_almost_equal(actual_weights, expected_weights)
np.testing.assert_allclose(actual_weights, expected_weights)
np.testing.assert_array_equal(actual_idx, expected_idx)

0 comments on commit 18c6e3a

Please sign in to comment.