Skip to content

Commit

Permalink
fix unhashable type error in agents-networks gis example
Browse files Browse the repository at this point in the history
  • Loading branch information
wang-boyu authored and EwoutH committed Sep 3, 2024
1 parent 6312ebe commit f24626e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gis/agents_and_networks/src/agent/building.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,6 @@ def __eq__(self, other):
if isinstance(other, Building):
return self.unique_id == other.unique_id
return False

def __hash__(self) -> int:
return hash(self.unique_id)

0 comments on commit f24626e

Please sign in to comment.