def fill_entity_dict(): entity_index_map = {} index = 0 for k in Entity.get_entity_size_dict().keys(): if not str(k).endswith("remnants"): entity_index_map[str(k)] = index index += 1 return entity_index_map
def _get_entity_index_dicts() -> Tuple[dict, dict]: entity_index_map = {} reverse_index_map = {} index = 0 for k in Entity.get_entity_size_dict().keys(): if not str(k).endswith("remnants"): entity_index_map[str(k)] = index reverse_index_map[index] = str(k) index += 1 return entity_index_map, reverse_index_map