diff --git a/gis/agents_and_networks/src/agent/building.py b/gis/agents_and_networks/src/agent/building.py index cc260a3b..7a18bddc 100644 --- a/gis/agents_and_networks/src/agent/building.py +++ b/gis/agents_and_networks/src/agent/building.py @@ -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)