Skip to content

Commit

Permalink
test_geodesic_distance almost equal
Browse files Browse the repository at this point in the history
  • Loading branch information
nbokulich committed Dec 9, 2018
1 parent 7f731d9 commit 5a654a5
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions q2_coordinates/tests/test_mapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,7 @@ def test_geodesic_distance(self):
exp = qiime2.Artifact.load(self.get_data_path(
'geodesic_distance_matrix.qza')).view(DistanceMatrix)
dm = dm.view(DistanceMatrix)
error_msg = '\nobs IDs: {0}\nexp IDs: {1}\nobs:\n{2}\nexp:\n{3}'
np.set_printoptions(threshold=np.inf)
np.testing.assert_array_almost_equal(dm.data, exp.data, decimal=3)
self.assertTrue(dm == exp, msg=error_msg.format(
dm.ids, exp.ids, dm.data, exp.data))


class TestCoordMethods(CoordinatesTestPluginBase):
Expand Down

0 comments on commit 5a654a5

Please sign in to comment.