Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main' into to_w
Browse files Browse the repository at this point in the history
  • Loading branch information
jGaboardi committed Mar 9, 2024
2 parents 3fe873e + caeaa82 commit bcabdbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libpysal/graph/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def __init__(self, adjacency, transformation="O", is_sorted=False):
raise TypeError(
f"The adjacency table needs to be a pandas.Series. {type(adjacency)}"
)
if not adjacency.index.names == ["focal", "neighbor"]:
if not tuple(adjacency.index.names) == ("focal", "neighbor"):
raise ValueError(
"The index of the adjacency table needs to be a MultiIndex named "
"['focal', 'neighbor']."
Expand Down

0 comments on commit bcabdbc

Please sign in to comment.