Skip to content

Commit f24626e

Browse files
wang-boyuEwoutH
authored andcommitted
fix unhashable type error in agents-networks gis example
1 parent 6312ebe commit f24626e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

gis/agents_and_networks/src/agent/building.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,6 @@ def __eq__(self, other):
3535
if isinstance(other, Building):
3636
return self.unique_id == other.unique_id
3737
return False
38+
39+
def __hash__(self) -> int:
40+
return hash(self.unique_id)

0 commit comments

Comments
 (0)