Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
martinfleis committed Aug 10, 2023
1 parent 172ca3c commit fc25077
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libpysal/graph/tests/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -548,12 +548,12 @@ def test_sparse(self):
def test_sparse_roundtrip(self):
G = graph.Graph(self.adjacency_int_binary)
sp = G.sparse
G_sp = graph.Graph.from_sparse(sp, np.asarray(list(G.id2i.keys())))
G_sp = graph.Graph.from_sparse(sp, np.asarray(list(G._id2i.keys())))
assert G == G_sp

G = graph.Graph(self.adjacency_str_binary)
sp = G.sparse
G_sp = graph.Graph.from_sparse(sp, np.asarray(list(G.id2i.keys())))
G_sp = graph.Graph.from_sparse(sp, np.asarray(list(G._id2i.keys())))
assert G == G_sp

def test_cardinalities(self):
Expand Down

0 comments on commit fc25077

Please sign in to comment.