1. Matthew Turk
  2. yt

Commits

Stephen Skory  committed f7efbe3

These asserts really should test for perfect match.

  • Participants
  • Parent commits 703e12b
  • Branches yt

Comments (0)

Files changed (1)

File yt/utilities/tests/test_kdtrees.py

View file
     dist = np.array([2.43e-04, 3.63e-04, 1.083e-03, 7.47003e-01])
     tags = np.array([3, 0, 2, 1], dtype='int64')
     assert_array_almost_equal(fKD.dist, dist)
-    assert_array_almost_equal(fKD.tags, tags)
+    assert_array_equal(fKD.tags, tags)
 
 def test_cython_tree():
     # This test makes sure that the fortran kdtree is finding the correct
     dist = np.array([2.43e-04, 3.63e-04, 1.083e-03, 7.47003e-01])
     tags = np.array([3, 0, 2, 1], dtype='int64')
     assert_array_almost_equal(res[0], dist)
-    assert_array_almost_equal(res[1], tags)
+    assert_array_equal(res[1], tags)