def load_grid_selection(path):
"""Load a selected grid from pickle."""
if not os.path.isfile(path):
raise ValueError("The file is not existed.""")
with open(path, "r") as f:
data = pickle.load(f)
f.close()
return data['environment'], data['gt'], data['po'], data['goal']
utils.py 文件源码
python
阅读 22
收藏 0
点赞 0
评论 0
评论列表
文章目录