示例#1
0
文件: main.py 项目: jurgyy/Factor-IO
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
示例#2
0
    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