diff --git a/atlas/metrics.py b/atlas/metrics.py index 05b5e89..6a2a5dc 100644 --- a/atlas/metrics.py +++ b/atlas/metrics.py @@ -133,7 +133,7 @@ def _get_point_ids(self, facility, agent_id: str, aliases: List[str]) -> Dict[st except Exception as e: raise Exception(f"Error listing points for facility {facility.display_name}: {e}") - if len(point_map) != len(aliases): + if len(set(point_map.keys())) != len(set(aliases)): not_found = set(aliases) - set(point_map.keys()) raise Exception(f"Points {not_found} not found for facility {facility.short_name}")