Skip to content

Commit

Permalink
more informative error
Browse files Browse the repository at this point in the history
  • Loading branch information
scottgigante committed Jun 1, 2018
1 parent a727b82 commit ee73086
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_mnn.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def test_mnn_graph_float_gamma():
assert np.all(G.d == G2.d), "{} ({}, {})".format(
np.where(G.d != G2.d),
G.d[np.argwhere(G.d != G2.d).reshape(-1)],
G.d[np.argwhere(G.d != G2.d).reshape(-1)])
G2.d[np.argwhere(G.d != G2.d).reshape(-1)])
assert (G.W != G2.W).nnz == 0
assert (G2.W != G.W).sum() == 0
assert isinstance(G2, graphtools.graphs.MNNGraph)
Expand Down Expand Up @@ -147,7 +147,7 @@ def test_mnn_graph_matrix_gamma():
assert np.all(G.d == G2.d), "{} ({}, {})".format(
np.where(G.d != G2.d),
G.d[np.argwhere(G.d != G2.d).reshape(-1)],
G.d[np.argwhere(G.d != G2.d).reshape(-1)])
G2.d[np.argwhere(G.d != G2.d).reshape(-1)])
assert (G.W != G2.W).nnz == 0
assert (G2.W != G.W).sum() == 0
assert isinstance(G2, graphtools.graphs.MNNGraph)
Expand Down

0 comments on commit ee73086

Please sign in to comment.