Skip to content

Commit

Permalink
fix compat python 2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
nperraud committed Aug 19, 2019
1 parent 9e2b382 commit 5af2527
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pygsp/tests/test_learn_graph.py
Expand Up @@ -50,7 +50,7 @@ def test_sum_squareform(self):
res1 = np.sum(A, axis=1)
a = squareform_sp(A)
S,St = sum_squareform(nt)
res2 = S @ a
res2 = S.dot(a)
np.testing.assert_allclose(res1,res2)
np.testing.assert_array_equal(S.transpose().todense(), St.todense())

Expand All @@ -65,7 +65,7 @@ def test_sum_squareform_sparse(self):
w = squareform_sp(W)
S,St = sum_squareform(nt, w)
wfull = w.data
res2 = S @ wfull
res2 = S.dot(wfull)
np.testing.assert_allclose(res1,res2)
np.testing.assert_array_equal(S.transpose().todense(), St.todense())

Expand Down

0 comments on commit 5af2527

Please sign in to comment.