diff --git a/nac3artiq/demo/embedding_map.py b/nac3artiq/demo/embedding_map.py index 9f4b877a3..74b9aa1a9 100644 --- a/nac3artiq/demo/embedding_map.py +++ b/nac3artiq/demo/embedding_map.py @@ -33,7 +33,7 @@ class EmbeddingMap: obj_id = id(obj) if obj_id in self.object_inverse_map: return self.object_inverse_map[obj_id] - key = len(self.object_map) + key = len(self.object_map) + 1 self.object_map[key] = obj self.object_inverse_map[obj_id] = key return key